Red Hat Bugzilla – Bug 60403
rpm db corrupted after gcc upgrade
Last modified: 2008-05-01 11:38:01 EDT
Description of Problem:
After upgrading gcc to version 3.1, I had a db3 error (DB->VERIFY FAILED
end the rpm-db seems corrupted ever since. (When I do a rp -qa, it starts
rolling, then gives me error: rpmdb: damaged header instance #431
retrieved, skipping. and segment faults after that.
Version-Release number of selected component (if applicable):
any rpm command...
Steps to Reproduce:
1. rpm -qa
2. rpm --rebuilddb
error: rpmdb: damaged header instance #431 retrieved, skipping.
you can find the rpmdb on the URL mentionned above.
Instance #538 (libgcj-devel? I fergit) was bad.
I deleted, and put a fixed version of your
/var/lib/rpm/Packages file at
Download and install by doing (as root)
mv Packages Packages-BAD
tar xzvf rpmdb-60403-FIX.tar.gz
rm -f __db*
rpm --rebuilddb -vv
You'll want to reinstall the libgcj-devel package as well.