2007/10/11

rebulid rpm db when error

I got a error when using yum

error: db4 error(-30977) from dbenv->open: DB_RUNRECOVERY: Fatal error, run database recovery

So I issued the flowing command to correct it.

rm -f /var/lib/rpm/__db*
db_verify /var/lib/rpm/Packages
rpm --rebuilddb


http://www.linuxforums.org/forum/redhat-fedora-linux-help/37164-corrupt-rpm-database.html

This may be a little late but your problem may be as a result of les (Linux Environment Security) which is designed for RedHat/rpm-based distributions to prevent even root from changing settings.

Check out R-fx Networks LES page
Try the following:

Code:

[root@control ~]# les -da

No comments: