root / >> rpm --rebuilddb error: db4 error(16) from dbenv->remove: Device or resource busy
Thanks to all who replied. I poked around in the rpm-list archives where someone said this error message was a bug, and that updating rpm should fix it. So I updated to the latest release I could find (rpm-4.2-1), but I *still* get the error. Now, however, the db seems to be at least partially rebuilt. I say partially because rpm -q for a lot of packages that I know are installed (ie, kernel) still returns "package not installed".
All of my /var/log/rpmpkgs archives are out-dated; wish I'd thought to look in there last month. (doh!) This log must be written from the current db, because the listing is not complete.
The script from the link that Bret Hughs provided (thanks!) depends on an up-to-date /var/log/rpmpkgs, so again I'm screwed. Can't figure out why rebuilding the database is so problematic, especially since it's so crucial to proper functioning of rpm. Any other thoughts?
Oh, also, someone mentioned lock files. Are they the ones such as '__db.001' and should I be deleting them before rebuild attempts? I see no other files in /var/lib/rpm that appear to be lock files...
Thanks again,
-- Joe Nestlerode DuPont Chemical Sciences & Engineering Wilmington, Delaware joseph.nestlerode@xxxxxxxxxxxxxx
"No matter how cynical you become, it's hard to keep up." -Lily Tomlin
(please excuse the wordy corporate disclaimer- I am unable to remove it)
This communication is for use by the intended recipient and contains information that may be privileged, confidential or copyrighted under
applicable law. If you are not the intended recipient, you are hereby
formally notified that any use, copying or distribution of this e-mail,
in whole or in part, is strictly prohibited. Please notify the sender
by return e-mail and delete this e-mail from your system. Unless
explicitly and conspicuously designated as "E-Contract Intended",
this e-mail does not constitute a contract offer, a contract amendment,
or an acceptance of a contract offer. This e-mail does not constitute
a consent to the use of sender's contact information for direct marketing
purposes or for transfers of data to third parties.
Francais Deutsch Italiano Espanol Portugues Japanese Chinese Korean
http://www.DuPont.com/corp/email_disclaimer.html
-- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list