Solved

RPM Trouble

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

WordPress Tutorial 1: Installation & Setup

WordPress is a very popular option for running your web site and can be used to get your content online quickly for the world to see. This guide will walk you through installing the WordPress server software and the initial setup process.

Question has a verified solution.

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

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

623 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