Page 1 of 1

Help with this error.

Posted: Sat Jun 19, 2010 8:32 am
by phonicx
Hi,

I keep getting a dialog box pop up saying 'Failed to initialize packaging backend'. When I click on more details I get the following,
Traceback (most recent call last):
File "/usr/share/PackageKit/helpers/yum/yumBackend.py", line 3078, in __init__
self.repos.confirm_func = self._repo_gpg_confirm
File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 770, in <lambda>
repos = property(fget=lambda self: self._getRepos(),
File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 511, in _getRepos
self.conf # touch the config class first
File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 778, in <lambda>
conf = property(fget=lambda self: self._getConfig(),
File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 255, in _getConfig
startupconf = config.readStartupConfig(fn, root)
File "/usr/lib/python2.6/site-packages/yum/config.py", line 834, in readStartupConfig
startupconf.releasever = _getsysver(startupconf.installroot, startupconf.distroverpkg)
File "/usr/lib/python2.6/site-packages/yum/config.py", line 953, in _getsysver
raise Errors.YumBaseError("Error: " + str(e))
YumBaseError: Error: rpmdb open failed
Does anyone have any suggestions to resolve this please?

Thanks.

Re: Help with this error.

Posted: Sat Jun 19, 2010 8:52 am
by bigfoot65
Looks like you have lost connectivity to the internet. What type of install did you do i.e. full DVD, Express CD, etc?

Re: Help with this error.

Posted: Sat Jun 19, 2010 10:02 am
by phonicx
I used the full DVD install. Its been working fine for about 3 months and has only started giving me this error in the last few days. When I boot the machine I sometimes get the message above with a message to try yum-complete-transaction.

I still have access to the internet from the machine.

Re: Help with this error.

Posted: Tue Jun 22, 2010 2:56 am
by chaosdesign
Maybe a YUM Database error/corruption

Found the following at Fedora

http://forums.fedoraforum.org/showthread.php?t=233437
It seems like the rpm database is hosed I would do this as root from a terminal

Code: Select all

Code: rm -f /var/lib/rpm/__db* rpm -vv --rebuilddb yum clean all
try that and report back on if it worked.

Re: Help with this error.

Posted: Sat Jul 03, 2010 2:32 am
by phonicx
A little bit late, but yes it worked! Thanks.