PDA

View Full Version : No Yum No Packagekit


lynnevan
24th November 2009, 05:50 AM
After downloading 133 updates I got this message in a popup box:
Failed to Initialize
Failed to initialize packaging backend.
This may occur if other packaging tools are being used at the simultaneously.
Traceback (most recent call last):
File "/usr/share/PackageKit/helpers/yum/yumBackend.py", line 2944, in __init__
self.repos.confirm_func = self._repo_gpg_confirm
File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 717, in <lambda>
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 <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 921, in _getsysver
raise Errors.YumBaseError("Error: " + str(e))
YumBaseError: Error: rpmdb open failed

I was looking at this thread earlier (than the downlad) because after the last update, no initramfs was created for the new kernel.

Tried running yum to download "hmaccalc" and got this error and the same error ever time I try to use yum:

\>> yum info hmaccalc
rpmdb: Program version 4.8 doesn't match environment version 4.7
error: db4 error(-30971) from dbenv->open: DB_VERSION_MISMATCH: Database environment version mismatch
error: cannot open Packages index using db3 - (-30971)
error: cannot open Packages database in /var/lib/rpm
CRITICAL:yum.main:

This is my current /boot directory:
-------------------------
config-2.6.31.1-56.fc12.i686.PAE
config-2.6.32-0.48.rc7.git1.fc13.i686.PAE
config-2.6.32-0.51.rc7.git2.fc13.i686.PAE
efi/
grub/
initramfs-2.6.31.1-56.fc12.i686.PAE.img
initramfs-2.6.32-0.51.rc7.git2.fc13.i686.PAE.img
System.map-2.6.31.1-56.fc12.i686.PAE
System.map-2.6.32-0.48.rc7.git1.fc13.i686.PAE
System.map-2.6.32-0.51.rc7.git2.fc13.i686.PAE
vmlinuz-2.6.31.1-56.fc12.i686.PAE*
vmlinuz-2.6.32-0.48.rc7.git1.fc13.i686.PAE*
vmlinuz-2.6.32-0.51.rc7.git2.fc13.i686.PAE

Can anybody think of a way to get me out of this hole?

Thanks in advance for any help or hints.

glennzo
24th November 2009, 07:53 AM
Same thing happened to me a couple weeks ago. Have a look see at this thread for a possible solution, http://forums.fedoraforum.org/showthread.php?t=233882&highlight=initramfs

Edit: To fix the initramfs error that is ...

hopeful80
24th November 2009, 07:56 AM

Im sorry how do i post on this site

leigh123linux
24th November 2009, 08:01 AM
Im sorry how do i post on this site

http://forums.fedoraforum.org/faq.php?faq=vb3_reading_posting#faq_vb3_posting



http://forums.fedoraforum.org/faq.php?faq=vb3_board_usage#faq_vb3_forums_threads _posts



http://forums.fedoraforum.org/faq.php

lynnevan
24th November 2009, 11:48 PM
Same thing happened to me a couple weeks ago. Have a look see at this thread for a possible solution, http://forums.fedoraforum.org/showthread.php?t=233882&highlight=initramfs

Edit: To fix the initramfs error that is ...

Yeah, I had already read that thread and was going to follow it up, but after that biig download, Packagekit & Yum don't work, so until Yum or Packagekit works I can't make an initramfs.

I'll copy the yum error here again. I think it's obvious Yum & Packagekit are having the same problem.
yum info hmaccalc
rpmdb: Program version 4.8 doesn't match environment version 4.7
error: db4 error(-30971) from dbenv->open: DB_VERSION_MISMATCH: Database environment version mismatch
error: cannot open Packages index using db3 - (-30971)
error: cannot open Packages database in /var/lib/rpm
CRITICAL:yum.main

Any command to Yum gives the same error - version/environment mismatch.

Is there some way I can use an rpm downloaded from another computer to correct the version mismatch?

I've got F11 on another computer and ssh works.

Any ideas? please?

Thanks in advance.

Edit: SUCCESS. I just downloaded hmaccalc w/ yum.

Probably due to some brilliant code manipulation of mine, like powering off the computer last night.

Now I can try the info from the thread http://forums.fedoraforum.org/showthread.php?t=233882&highlight=initramfs like you mentioned.

thanks