Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

RPM Trouble

Posted on 2003-11-17
4
Medium Priority
?
476 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 17

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 17

Accepted Solution

by:
Chris Harte earned 1000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Monitor input from a computer is usually nothing special.  In this instance it prevented anyone from using the computer.  This was a preconfiguration that didn't work.
If you don't know how to downgrade, my instructions below should be helpful.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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.
Suggested Courses

722 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