Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 6th June 2009, 01:07 AM
LinuxTom Offline
Registered User
 
Join Date: Jul 2005
Location: Kentucky, U.S.A.
Posts: 349
Lightbulb RPM database Borked after recent update to rpm-4.6.1-1

After today's round of updates installed rpm-4.6.1-1 the system choked on reboot while loading akmods and spit out the following messages

Quote:
rpmdb: /var/lib/rpm/Packages: unsupported hash version: 9
error: cannot open Packages index using db3 - Invalid argument (22)
The traditional approach of just removing the __db.0* (database files), and running rpm --rebuilddb did not work. db_recover produced the output:
Quote:
Program version 4.7 doesn't match environment version 4.5
A bit of trial and error resolved this via...

Quote:
cd /var/lib/rpm
rm -fv __db*
mv -v Packages Packages-BAK
db_dump Packages-BAK | db45_load Packages
rpm -vv --rebuilddb
I see no mention of anyone else having this problem, but if you run across it, these steps should rectify the situation.
Reply With Quote
  #2  
Old 9th June 2009, 08:02 PM
rohanhelio Offline
Registered User
 
Join Date: May 2009
Posts: 2
I have Fedora 10 and my rpm data base also got corrupted i tried the steps you suggested. But the third step is giving error that
db_dump: command not found

Do you have any other suggestion to solve this problem, I am a bit new in all these things.

thanks
Reply With Quote
  #3  
Old 13th June 2009, 02:13 PM
LinuxTom Offline
Registered User
 
Join Date: Jul 2005
Location: Kentucky, U.S.A.
Posts: 349
Sorry about the delay in response, I lost track of this thread.

It should be in /usr/bin/db_dump assuming the db4-utils package was installed properly.

You would also need compat-db45 package which provides /usr/bin/db45_load. But unfortunately if rpm is broken, you can neither verify the installation of those packages, nor install them if they aren't currently installed.
Reply With Quote
Reply

Tags
borked, database, recent, rpm, rpm1, update

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
System-config-network borked on last update BobNutfield Alpha, Beta & Snapshots Discussions (Fedora 10 Only) 3 27th October 2008 08:21 PM
Beware - Kmix BORKed after latest F7 YUM update.. shess01 Using Fedora 5 26th July 2007 06:21 PM
FC6T2 AMD_x64 SMP Yum Update Borked? fedora6t2 Using Fedora 1 28th August 2006 11:44 PM
03/08 Yum Update Borked My System j_baer Fedora Core 5 - Dev 0 8th March 2006 11:25 PM


Current GMT-time: 20:03 (Tuesday, 21-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