Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > The Dungeon > Archived (Click Header To See Sub-Forums) > Alpha, Beta & Snapshots Discussions (Fedora 11 Only)
FedoraForum Search

Forgot Password? Join Us!

Alpha, Beta & Snapshots Discussions (Fedora 11 Only) Post Development Version comments and questions that don't belong in Bugzilla here. These posts will be moved or deleted once the Final version is released

 
 
Thread Tools Search this Thread Display Modes
  #1  
Old 19th February 2009, 04:28 PM
abiko Offline
Registered User
 
Join Date: Feb 2009
Posts: 6
yum broken?

I'll be short with this one
After update manager told me that there are 186 updates for fedora 11 alpha, I've started to update the system.. Something broke :/
Now when using yum I get this error(s):

Code:
Loaded plugins: dellsysidplugin2, refresh-packagekit
rpmdb: Program version 4.7 doesn't match environment version 4.5
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
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 301, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 155, in main
    base.getOptionsConfig(args)
  File "/usr/share/yum-cli/cli.py", line 188, in getOptionsConfig
    self.conf
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 632, in <lambda>
    conf = property(fget=lambda self: self._getConfig(),
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 227, in _getConfig
    self._conf = config.readMainConfig(startupconf)
  File "/usr/lib/python2.6/site-packages/yum/config.py", line 772, in readMainConfig
    yumvars['releasever'] = _getsysver(startupconf.installroot, startupconf.distroverpkg)
  File "/usr/lib/python2.6/site-packages/yum/config.py", line 842, in _getsysver
    idx = ts.dbMatch('provides', distroverpkg)
TypeError: rpmdb open failed
  #2  
Old 19th February 2009, 06:03 PM
vallimar Offline
Registered User
 
Join Date: Jul 2008
Posts: 811
You upgraded the rpm packages. Between Alpha and Rawhide,
they made changes to rpm. Do the following:
  1. cp -av /var/lib/rpm /var/lib/rpm.bak
  2. rm -f /var/ilb/rpm/__db*
  3. rpm -vv --rebuilddb
This will convert the old rpmdb to the newer format, using the newer db api.
Provided no errors were encountered, you can rm -rf /var/lib/rpm.bak
and proceed with your yum updates.

Also, yum seems to have an issue when updating the bash rpm.
I would advise not updating that along with others as you'll have a small mess
on your hands if yum breaks on you like it does me.

Last edited by vallimar; 19th February 2009 at 06:05 PM. Reason: typo's - mention bash
  #3  
Old 19th February 2009, 08:00 PM
abiko Offline
Registered User
 
Join Date: Feb 2009
Posts: 6
Thank you on your help.
Now running the KPackageKit to see where did it stop in the update process..
Again, thank you!
  #4  
Old 9th June 2009, 09:20 PM
matth45 Offline
Registered User
 
Join Date: Jun 2007
Posts: 148
Thank you! This was very helpful.

By the way, #2 should be

2. rm -f /var/lib/rpm/__db*
 

Tags
broken, yum

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FC10 Grub Install Options Broken, chroot broken, dual boot troubles cuban_cigar Using Fedora 1 6th April 2009 10:35 AM
Broken YUM ??? pepe123 Using Fedora 8 4th April 2008 03:28 PM


Current GMT-time: 23:10 (Saturday, 25-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat