Solved

RPM Trouble

Posted on 2003-11-17
4
450 Views
Last Modified: 2013-11-13
Hi,

I'm having trouble installing RPM's...
I double click the file... it starts reading headers..
and just hangs...

i've managed to install one or two rpm's before but for some reason i cant anymore...
i'm running redhat9.

any ideas?

(i'm very new to linux so if the answers could be step-by-step it would be even more helpfull.)

Thanks

0
Comment
Question by:11ods
  • 2
  • 2
4 Comments
 
LVL 16

Expert Comment

by:Chris Harte
ID: 9766963
First thing you can try is rebuilding you rpm database.
In my experience rpm gets very confused very easily.
A rebuild will scan your system to see what is actually there rather than what it thinks is there.
Open a terminal, log in as root and type

rpm -rebuilddb

Then try reinstalling
0
 

Author Comment

by:11ods
ID: 9767156
ok,

rpm -rebuilddb

just hangs aswell....
i left it on for a good couple of minutes
0
 

Author Comment

by:11ods
ID: 9767470
hmm,
actually,
after waiting even longer,
i get this:

error: db4 error(16) from dbenv->remove: Device or resource busy
0
 
LVL 16

Accepted Solution

by:
Chris Harte earned 250 total points
ID: 9767651
Just been to google with your error message. There are issues with a version of rpm that was released with rh9.

I condensed this from the rpm site.
http://www.rpm.org/hintskinks/repairdb/

The locks on the rpm database are not current and have to be deleted before anything can be added to the database.
The locks are files with the prefix __ in the /var/lib/rpm directory.

To fix it the commands are:

   cd /var/lib/rpm
   rm -f /var/lib/rpm/__db*
   rpm -vv --rebuilddb

The -vv option is so that there will be visible progress on screen while it is running.

After that run your up2date package to get the latest version of rpm from the redhat site.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
linux ssh 4 59
Changing passwords in Linux Systems 3 42
nagios monitor 3 44
APACHE SSL Wilcard Certificate  update installation assistance 3 28
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now