Alan Carbutt wrote:
It happens to me all the time.I was updating the latest errata for LM 9.0 and I got the following output:[root@x errata]# rpm -Fvh * rpmdb: Unreferenced page 3479 rpmdb: Unreferenced page 3480 rpmdb: Unreferenced page 3481 rpmdb: Unreferenced page 3482 error: db4 error(-30979) from db->verify: DB_VERIFY_BAD: Database verification failed I'm not too familiar with RPM, so I was wondering if anyone has run across this and if I should be worried about this. TIA,
Delete /var/lib/rpm/__db.* and then rpm --rebuilddb
If you're lucky you'll get your rpm database back.
If you're not, you'll get a working rpm database but with *many* packages missing (this happened to me once). It was painful to solve (basically, running all files through rpm -qf to see which ones weren't owned by any package, run the resulting list through urpmf to know the packages to rpm --justdb).
Now each time I install or remove packages I keep a copy of the rpm -qa output (to compare it to what I get after rpm --rebuilddb).
Bye
--
Luca Olivetti
Note.- This message reached you today, it may not tomorrow if you
are using MAPS services. They arbitrarily include in their lists
IP addresses not related in any way to spam, and in so doing are
disrupting Internet connectivity. Please stop supporting them.
See http://slashdot.org/article.pl?sid=01/05/21/1944247
msg62146/pgp00000.pgp
Description: PGP signature
