YUM: Thread died in Berkeley DB library, Fatal error, | Unixmen

YUM: Thread Died In Berkeley DB Library, Fatal Error,

WRITTEN BY mel kham ON APRIL 4, 2011. POSTED IN frequently asked questions

When i run Yum update in fedora,  i got this error

Error :

[root@localhost RPMS]# yum update

rpmdb: Thread/process 7977/139764163434432 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

CRITICAL:yum.main:

Error: rpmdb open failed

 

Solution :

Run this command:

[root@localhost RPMS]# rm /var/lib/rpm/__db*

via YUM: Thread died in Berkeley DB library, Fatal error, | Unixmen.