Description of problem: My laptop died twice, one time during "yum update" and the second time during executing yum-complete-transaction. When I now try to execute yum-complete-transaction, I get the following stack-trace: [root@localhost ce]# yum-complete-transaction rpmdb: Thread/process 1789/3086182080 failed: Thread died in Berkeley DB library error: db4 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 Traceback (most recent call last): File "/usr/sbin/yum-complete-transaction", line 211, in <module> util = YumCompleteTransaction() File "/usr/sbin/yum-complete-transaction", line 118, in __init__ self.main() File "/usr/sbin/yum-complete-transaction", line 137, in main opts = self.doUtilConfigSetup() File "/usr/share/yum-cli/utils.py", line 99, in doUtilConfigSetup self.conf File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 723, in <lambda> conf = property(fget=lambda self: self._getConfig(), File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 249, in _getConfig startupconf = config.readStartupConfig(fn, root) File "/usr/lib/python2.6/site-packages/yum/config.py", line 805, in readStartupConfig startupconf.releasever = _getsysver(startupconf.installroot, startupconf.distroverpkg) File "/usr/lib/python2.6/site-packages/yum/config.py", line 916, in _getsysver if sys.hexversion < 0x02050000: NameError: global name 'sys' is not defined Also kpackage-kit refuses to do any work, reporting: Traceback (most recent call last): File "/usr/share/PackageKit/helpers/yum/yumBackend.py", line 2957, in __init__ self.repos.confirm_func = self._repo_gpg_confirm File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 717, in repos = property(fget=lambda self: self._getRepos(), File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 496, in _getRepos self.conf # touch the config class first File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 723, in conf = property(fget=lambda self: self._getConfig(), File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 249, in _getConfig startupconf = config.readStartupConfig(fn, root) File "/usr/lib/python2.6/site-packages/yum/config.py", line 805, in readStartupConfig startupconf.releasever = _getsysver(startupconf.installroot, startupconf.distroverpkg) File "/usr/lib/python2.6/site-packages/yum/config.py", line 916, in _getsysver if sys.hexversion Version-Release number of selected component (if applicable): Rawhide, about ~1.10.09 How reproducible: Only on my system, probably due to corrupted RPM database.
your python install is so badly damaged that yum cannot even find 'sys' So it cannot output the error that it can't open your rpmdb. That's REALLY bad. I don't think there's much we can do that but maybe tell you that you have to reinstall.
Hmm, thats sad news :-/ I planned to switch from rawhide/i686 -> F12/amd64 anyway, so it could be worse. Everything else still seems to work, I'll simply way until F12 is released and do a fresh install. Thanks for your analysis, Clemens
No, it's (probably) not that bad ... config.py doesn't import sys. Copy and paste bug.
Wonderful :) After --rebuilddb and a restart, "yum update" works again without any problems. Thanks, Clemens
*** Bug 529038 has been marked as a duplicate of this bug. ***
*** Bug 530174 has been marked as a duplicate of this bug. ***
530174 is an lvm creation error, not a yum error. It has probably been closed as a duplicate of this problem in error.
*** Bug 532214 has been marked as a duplicate of this bug. ***