LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-18-2003, 08:08 AM   #1
Tommi
Member
 
Registered: Apr 2003
Posts: 185

Rep: Reputation: 30
Talking "rpm --rebuilddb" fails to error.


Yo!

I usually use

$ rpm --rebuilddb

after installation. It seems good idea to rebuild rpm database after installation...am I right?

Anyway it fails because device or resource is busy.

How to find out what is this device or resource which is busy and how to disable it so I can rebuild my database?

Thanks for help.

-Tommi
 
Old 04-18-2003, 11:15 AM   #2
cnjohnson
Member
 
Registered: Nov 2002
Location: Nashville
Distribution: FreeBSD, Linux, OS-X
Posts: 544

Rep: Reputation: 30
I usually delete the index/lock files in /var/lib/rpm

#rm __db*

These are the files with the leading double underscore. Then, I do the rebuild.

Cheers--
Charles
 
Old 05-04-2003, 12:36 AM   #3
jessepangburn
LQ Newbie
 
Registered: Nov 2002
Distribution: RedHat 9.0
Posts: 15

Rep: Reputation: 0
you need to delete those locks, but when you try to rebuild and the locks are the problem- the error message is different- I forget what. In this case, a process already has the rpm database open so you need to kill that process first. I use redhat 9 and there you can use the "System Monitor" to find any rpm processes and kill them. Also look for 'redhat-config-packages' process. Once you kill those, follow cnjohnson's suggestion to delete the lock files, then try the rebuild again.
 
Old 05-04-2003, 12:40 AM   #4
jessepangburn
LQ Newbie
 
Registered: Nov 2002
Distribution: RedHat 9.0
Posts: 15

Rep: Reputation: 0
oh, and I suggest using
#rpm --rebuilddb -vv
this gives very verbose output, but since this rebuild can take a long time, it's nice to see because you know it's not just hung up.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
error: C++ preprocessor "/lib/cpp" fails sanity check marek345 Linux - Software 4 11-06-2008 09:49 AM
LFS 6.0 error: glibc fails check with "g++: command not found" peristaltic Linux From Scratch 1 03-15-2005 07:52 PM
error: C preprocessor "/lib/cpp" fails sanity check Master Fox Linux - Software 0 10-14-2004 03:39 PM
Segment violation in "rpm --rebuilddb" jromero_arg Linux - Enterprise 1 06-30-2004 09:10 AM
rpm error only says"rpm: relocation error: rpm: undefined symbol: poptAliasOptions" dlrsims Linux - Newbie 2 11-14-2003 09:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:45 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