Solved

RPM Trouble

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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Setting up static IP - Ubuntu server 16.04 12 62
installing docker on ubuntu 6 29
How to enable sync between two yum repo? 1 31
Securing Azure Oracle instance of Linux VM 4 57
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

776 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