Description of problem:When adding or removing components, get unexpected error Error Type: <type 'exceptions.TypeError'> Error Value: rpmdb open failed File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 2316, in <module> main() File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 2312, in main backend = PackageKitYumBackend('', lock=True) File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 182, in __init__ self.yumbase = PackageKitYumBase(self) File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 2255, in __init__ self.repos.confirm_func = self._repo_gpg_confirm File : /usr/lib/python2.5/site-packages/yum/__init__.py, line 589, in <lambda> repos = property(fget=lambda self: self._getRepos(), File : /usr/lib/python2.5/site-packages/yum/__init__.py, line 395, in _getRepos self._getConfig() # touch the config class first 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) Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
We've cleaned up the error a bit (new yum in updates-testing), so you don't get a huge traceback. But it's still basically just going to print: Error Value: rpmdb open failed ...which means something has got the rpmdb open, and won't let yum open it. The brute force fix is: rm /var/lib/rpm/__db* ...but is kind of horrible.