PDA

View Full Version : yum failure



jaslar
8th March 2009, 07:54 PM
Hmm, what's this about? Similar error in using the graphic "update software."

# yum update
Loaded plugins: presto, refresh-packagekit
rpmdb: Thread/process 19223/3086227136 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 <module>
yummain.user_main(sys.argv[1:], exit_code=True)
File "/usr/share/yum-cli/yummain.py", line 229, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 84, in main
base.getOptionsConfig(args)
File "/usr/share/yum-cli/cli.py", line 184, in getOptionsConfig
enabled_plugins=self.optparser._splitArg(opts.enab leplugins))
File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 192, in _getConfig
self._conf = config.readMainConfig(startupconf)
File "/usr/lib/python2.5/site-packages/yum/config.py", line 774, in readMainConfig
yumvars['releasever'] = _getsysver(startupconf.installroot, startupconf.distroverpkg)
File "/usr/lib/python2.5/site-packages/yum/config.py", line 844, in _getsysver
idx = ts.dbMatch('provides', distroverpkg)
TypeError: rpmdb open failed

leigh123linux
8th March 2009, 08:07 PM
Try



su
rm -f /var/lib/rpm/__db*
rpm --rebuilddb

jaslar
8th March 2009, 08:09 PM
Thanks. Just about to try that, but reboot first -- and the problem went away. I'll file that away if it should happen again.