Wednesday, 1 April 2009

Problems With Yum On Fedora 10

So every now and again YUM stops working and throwing out error messages usually after I've been to uni.

rpmdb: Thread/process 4348/3087935168 failed: Thread died in Berkeley DB library
error: db4 error(-30975) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db3 - (-30975)
error: cannot open Packages database in /var/lib/rpm
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in
yummain.user_main(sys.argv[1:], exit_code=True)
File "/usr/share/yum-cli/", line 229, in user_main
errcode = main(args)
File "/usr/share/yum-cli/", line 84, in main
File "/usr/share/yum-cli/", line 184, in getOptionsConfig
File "/usr/lib/python2.5/site-packages/yum/", line 192, in _getConfig
self._conf = config.readMainConfig(startupconf)
File "/usr/lib/python2.5/site-packages/yum/", line 774, in readMainConfig
yumvars['releasever'] = _getsysver(startupconf.installroot, startupconf.distroverpkg)
File "/usr/lib/python2.5/site-packages/yum/", line 844, in _getsysver
idx = ts.dbMatch('provides', distroverpkg)
TypeError: rpmdb open failed

After a quick search I found a solution. Deleting the __db.* files in /var/lib/rpm fixes it

$ sudo rm /var/lib/rpm/__db.*

1 comment:

  1. I have seen the same problem when I installed fedora 11 LiveCD (great) on an 8 gig USB drive off the CD, but has no effect on other system functionality, the OS would have crashed long ago with blue and black c=screens of death, yet this OS is running strong? as this note leaving of its firefox 3.5b4 (great also). thank you for the advice and this do solve along with the reboot. It is very stable OS, and I would take my hat off to salute.

    sudo rm /var/lib/rpm/__db.* would do it and a reboot then after would also be prudent! many thanks to all?