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*
Output:
rm: remove regular file `/var/lib/rpm/__db.001′? y
rm: remove regular file `/var/lib/rpm/__db.002′? y
rm: remove regular file `/var/lib/rpm/__db.003′? y
rm: remove regular file `/var/lib/rpm/__db.004′? y
Now try the Update again :
[root@localhost RPMS]# yum update
Loaded plugins: langpacks, presto, refresh-packagekit
Adding en_US to language list
fedora-firefox4 | 3.0 kB 00:00
google-talkplugin | 951 B 00:00
playonlinux | 951 B 00:00
playonlinux/primary | 1.7 kB 00:00
playonlinux 8/8
rpmfusion-free-updates | 3.3 kB 00:00
rpmfusion-free-updates/primary_db | 218 kB 00:00
rpmfusion-nonfree-updates | 3.3 kB 00:00
rpmfusion-nonfree-updates/primary_db | 66 kB 00:00
updates/metalink | 27 kB 00:00
updates | 4.7 kB 00:00
updates/primary_db | 5.2 MB 00:01
Setting up Update Process
Resolving Dependencies
–> Running transaction check
—> Package PyQt4.x86_64 0:4.8.3-2.fc14 set to be updated
—> Package akonadi.x86_64 0:1.5.1-1.fc14 set to be updated
—> Package attica.x86_64 0:0.2.0-1.fc14 set to be updated
—> Package cronie.x86_64 0:1.4.7-1.fc14 set to be updated
Enjoy