failchk: DB_RUNRECOVERY: Fatal error

Linux classes, Linux Training, Computer Configuration GNU Linux Fedora using Linux Command Try to update Fedora 14 to day but, yum only display error that say fatal error , run database recovery...
[root@linux ~]# yum --skip-broken -y  update
rpmdb: Thread/process 2620/3077437120 failed: Thread died in Berkeley DB library
error: db3 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db3 -  (-30974)
error: cannot open Packages database in /var/lib/rpm

Error: rpmdb open failed

Solution 1:

1.  Fix the rpm database by run database recovery, as show on command example below:

[root@linux ~]# db_recover -h /var/lib/rpm

Clean yum cache:
[root@linux ~]# yum clean all

and then proceed to update Fedora again.... or try

Solution 2:

Skip the run databese recovery... just create or rebuild new rpm database

Remove old rpm database:
[root@linux ~]# rm -f /var/lib/rpm/_db*

Rebuilt RPM database (.. rebuilt rpm database process may take hours to finish):
[root@linux ~]# rpm --rebuilddb

Clean yum cache:

[root@linux ~]# yum clean all

now just try update your Linux Fedora
[root@linux ~]# yum --skip-broken -y update

( Please note, that you must execute the above command as root user )