Red Hat Bugzilla – Bug 100772
corrupt rpm database
Last modified: 2007-04-18 12:56:06 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225
Description of problem:
Many installed packages are not recogised and incorrect dependencies are
displayed when installing a package.
I have tried removing the stale locks and rebuilding the rpm database. But
rpm -vv --rebuilddb
This seems to run ok (see attachment)
take this installed package for example:-
henderson 8# rpm -ivh --test mp3blaster-3.1.3-1.i386.rpm
error: Failed dependencies:
ld-linux.so.2 is needed by mp3blaster-3.1.3-1
libc.so.6 is needed by mp3blaster-3.1.3-1
libm.so.6 is needed by mp3blaster-3.1.3-1
libpthread.so.0 is needed by mp3blaster-3.1.3-1
libstdc++-libc6.2-2.so.3 is needed by mp3blaster-3.1.3-1
libc.so.6(GLIBC_2.0) is needed by mp3blaster-3.1.3-1
libc.so.6(GLIBC_2.1) is needed by mp3blaster-3.1.3-1
libc.so.6(GLIBC_2.2.3) is needed by mp3blaster-3.1.3-1
libm.so.6(GLIBC_2.0) is needed by mp3blaster-3.1.3-1
libpthread.so.0(GLIBC_2.0) is needed by mp3blaster-3.1.3-1
libpthread.so.0(GLIBC_2.1) is needed by mp3blaster-3.1.3-1
These items are definietly installed
henderson 9# locate libc.so.6
I get a error checking the package database
henderson 15# db_verify Packages
db_verify: region error detected; run recovery.
db_verify: Old or incorrect DB version; extraneous errors may result
db_verify: DB->verify: Packages: DB_VERIFY_BAD: Database verification failed
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. try to install a package
2. get overwhelming dependency errors
Created attachment 93140 [details]
Output from running "rpm -vv -rebuilddb"
grep glibc output
indicates that your database does not have glibc installed.
Reinstall the glibc package so that dependencies can be found.
Harder to tell why db_verify is unhappy, but probably because
db-4.0.14 is not worward compatible with db-4.1.25.
rm -f __db*
does not yield any warning or error messages which implies that the database
looks OK. Somehow a large percentage of the database records has disapeared. I
have reinstalled some things (which now appear back in the rpm database) but
some packages have so many dependencies that I just use the --nodeps switch.
The original question of why more than half of my database contents disapeared
remains a mystery.