Solved

RPM Trouble

Posted on 2003-11-17
4
447 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

705 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