LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   rpm -ivh rsh..... hangs (https://www.linuxquestions.org/questions/linux-newbie-8/rpm-ivh-rsh-hangs-838525/)

rohit.dhaval1 10-16-2010 02:18 PM

rpm -ivh rsh..... hangs
 
Hi,

I am trying to install rsh packages. I tried below given command. The screen hangs.


rpm -ivh rsh-server-0.17-38.el5.i386.rpm
warning: rsh-server-0.17-38.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186

Also,

I was previously having problem of 'error: can't create transaction lock on /var/lib/rpm/__db.000', while trying to install. That seem to have resolved with help of steps given below.

This can be corrected with the following steps:

1. Remove any file locks rm –rf /var/lib/rpm/_db*
2. Remove any left over temp files in /var/lib/rmp/ with underscores, either single or double. For example, __db.000 - __db.004. This needs to be completed as root.
3. Make a copy of the RPM directories (cd /var/lib mkdir rpm-backup rsync -av ./rpm/. ./rpm-backup/.)
4. Rebuild the database (rpm –rebuilddb). Again, you need to be root.
5. Rerun the rpm removal option.

Above steps are taken from below mentioned thread.

http://www.linuxquestions.org/questi...nstall-688533/

Please help.

business_kid 10-16-2010 02:58 PM

There really needs to be a --middle-finger option for rpm to stop it tripping up over stupid stuff.
Check your rpm is from your distro, and check the md5sum. Are yuo running RHEL 5? Try md5sum rsh-server-0.17-38.el5.i386.rpm, and compare it with the value in the cd, or on the website.

rohit.dhaval1 10-16-2010 03:17 PM

Quote:

Originally Posted by business_kid (Post 4129737)
There really needs to be a --middle-finger option for rpm to stop it tripping up over stupid stuff.
Check your rpm is from your distro, and check the md5sum. Are yuo running RHEL 5? Try md5sum rsh-server-0.17-38.el5.i386.rpm, and compare it with the value in the cd, or on the website.

Hi,

This is what I got after running that command.

md5sum rsh-server-0.17-38.el5.i386.rpm
4808d0ef4c7c9a32b02dc0c7c1b06fe3 rsh-server-0.17-38.el5.i386.rpm

I visited, below link to find the solution,

https://rhn.redhat.com/errata/RHBA-2007-0972.html



Since rsh wasn't working I tried installing rsh-server rpm.
Problem is, everytime I try installing any package, this is what I get,


Quote:

warning: /var/tmp/rpm-xfer.WzRpX4: Header V3 DSA signature: NOKEY, key ID 37017186
warning: waiting for transaction lock on /var/lib/rpm/__db.000



error: can't create transaction lock on /var/lib/rpm/__db.000


John VV 10-16-2010 03:33 PM

Quote:

here really needs to be a --middle-finger option for rpm to stop it tripping up over stupid stuff.
there it is called " yum "

Quote:

Problem is, everytime I try installing any package, this is what I get,
that is because you are using the NOT RECOMMENDED RPM .When you should be using the program "yum "
Code:

yum install programName
or
Code:

yum localinstall ???
for this error " error: can't create transaction lock on /var/lib/rpm/__db.000"

Code:


su -
yum clean all
rpm --rebuilddb
yum update


rohit.dhaval1 10-16-2010 03:59 PM

Quote:

Originally Posted by John VV (Post 4129759)
there it is called " yum "


that is because you are using the NOT RECOMMENDED RPM .When you should be using the program "yum "
Code:

yum install programName
or
Code:

yum localinstall ???
for this error " error: can't create transaction lock on /var/lib/rpm/__db.000"

[code]
su -
yum clean all
rpm --rebuilddb
yum update
[code]


Hi John,

Many thanks for your help. Since, I don't have RHN registration, I cannot follow your steps. I have several other VMs same as this one. I don't find any problem with them. This is the machine that is causing all the issues.

Code:


[root@rhelvm ~]# pwd
/root

[root@rhelvm ~]# cat /etc/*release
Red Hat Enterprise Linux Server release 5.3 (Tikanga)

[root@rhelvm ~]# arch
i686

[root@rhelvm ~]# ls -l rsh-server-0.17-38.el5.i386.rpm
-rw-r--r-- 1 root root 39690 Oct 17 00:28 rsh-server-0.17-38.el5.i386.rpm

[root@rhelvm ~]# rm -rf /var/lib/rpm/__db*

[root@rhelvm ~]# yum clean all
Loaded plugins: rhnplugin, security
Cleaning up Everything


[root@rhelvm ~]# rpm --rebuilddb

[root@rhelvm ~]# yum update
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Skipping security plugin, no data
Setting up Update Process
Skipping security plugin, no data
Skipping security plugin, no data
No Packages marked for Update

[root@rhelvm ~]# rpm -ivh rsh-server-0.17-38.el5.i386.rpm
warning: rsh-server-0.17-38.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186

It gets stuck here. I am made to kill the session.

John VV 10-16-2010 04:37 PM

Quote:

Many thanks for your help. Since, I don't have RHN registration
then buy a license !!!
if you are going to use the NOT FREE RHEL then PAY FOR IT !!!
or do not use it !!!
or use the free community supported CentOS 5.5 !!!!


All times are GMT -5. The time now is 10:18 AM.