LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-16-2010, 03:18 PM   #1
rohit.dhaval1
Member
 
Registered: Jul 2009
Posts: 44
Blog Entries: 2

Rep: Reputation: 0
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.
 
Old 10-16-2010, 03:58 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 8,717

Rep: Reputation: 887Reputation: 887Reputation: 887Reputation: 887Reputation: 887Reputation: 887Reputation: 887
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.
 
1 members found this post helpful.
Old 10-16-2010, 04:17 PM   #3
rohit.dhaval1
Member
 
Registered: Jul 2009
Posts: 44
Blog Entries: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by business_kid View Post
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
 
Old 10-16-2010, 04:33 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,241

Rep: Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527
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
 
1 members found this post helpful.
Old 10-16-2010, 04:59 PM   #5
rohit.dhaval1
Member
 
Registered: Jul 2009
Posts: 44
Blog Entries: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by John VV View Post
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.

Last edited by rohit.dhaval1; 10-16-2010 at 05:02 PM.
 
Old 10-16-2010, 05:37 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,241

Rep: Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527
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 !!!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot install vlc using rpm -ivh <rpm> redhat5 Linux - Newbie 2 07-26-2009 05:38 AM
rpm -ivh gcc-4.1.1-52.el5.2.src.rpm failed with no error henli Linux - Newbie 5 04-15-2009 02:08 PM
counter part of "rpm -ivh --force kernel....rpm in slackware b0nd Slackware 2 01-28-2006 08:46 PM
after rpm -ivh then what brucewayne3210 Linux - Software 2 05-26-2004 08:24 PM
rpm -Uvh or -ivh? chri5 Linux - Newbie 1 11-16-2003 01:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration