LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-24-2004, 02:07 PM   #1
tawalker
Member
 
Registered: Jan 2004
Location: UK
Distribution: Red Hat 9
Posts: 52

Rep: Reputation: 15
Can't rebuild RPM database


I have an uncomfortable feeling that I have now either corrupted or destroyed my RPM database, and hope I'm mistaken...

The other evening, I was trying to install a set of Multisync RPMs. I can't quite remember at what point things started going pear-shaped, but ISTR trying to uninstall a mistaken RPM and the terminal window froze. I also fired up Synaptic, trying to locate any "multisync" packages there, and it bombed out when I tried searching.

I've read here that it sometimes helps to rebuild the RPM database with

Code:
rpm --rebuilddb
but when I try that (as root), it gives me this error:

Code:
error: db4 error(16) from dbenv->remove: Device or resource busy
I also tried what this post suggested, but it didn't seem to make any difference. At least Synaptic still seems to know what packages I have installed, so I guess something is still working...

Anyone know how I might be able to rescue the situation?

Many thanks,
Tim
 
Old 03-24-2004, 03:37 PM   #2
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
I'd guess that another process is using the rpm database. You can't rebuild it while something is using it. Run ps -aux | more and see if you can find any processes that are using rpm. If you can't I'd just reboot and then do this as root:

rm -f /var/lib/rpm/db__*
rpm --rebuilddb
 
Old 04-21-2004, 06:53 PM   #3
mblanco2000
LQ Newbie
 
Registered: Jan 2004
Posts: 11

Rep: Reputation: 0
rpm Database rebuild

I am running MDK 10 CE and would like to rebuild my rpm database but I do not have the db directorys under
/var/lib/rpm

I do not have any of those db directorys??

MB
 
Old 04-22-2004, 04:17 AM   #4
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
I'm not sure if they are in a different location in Mandrake. I'm not familiar with The Drake.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rebuild rpm database robertngo Red Hat 2 06-25-2005 02:31 PM
up2date not respond / trying to rebuild rpm database thejackal13 Linux - Software 7 11-07-2003 10:47 AM
RPM database problems - can't rebuild Ross Clement Red Hat 4 10-21-2003 12:35 PM
RPM Database Rebuild monte Linux - Distributions 3 09-25-2003 04:22 PM
RPM Database Rebuild monte Linux - Newbie 1 05-20-2003 05:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration