Fedora Linux Support Community & Resources Center
  #1  
Old 26th January 2011, 01:36 PM
andrewthomas's Avatar
andrewthomas Offline
Registered User
 
Join Date: Feb 2010
Posts: 106
linuxfirefox
unable to log in - corrupt rpmdb

For a couple of days I was unable to log in either in gdm or in the console.

I just kept updating in a chroot, hoping for the best.

Finally I decided to relabel the file system with

Code:
# touch .autorelabel
in the root directory.

This enabled me to finally log in, yet when I tried to update I got an error similar to:

Code:
error: cannot open Packages database in /var/lib/rpm
CRITICAL:yum.main:

Error: rpmdb open failed
When I tried:

Code:
rpm –rebuilddb
I got another error.

Finally I was able to fix it with

Code:
# db47_recover -e
  #2  
Old 14th February 2011, 05:49 PM
andrewthomas's Avatar
andrewthomas Offline
Registered User
 
Join Date: Feb 2010
Posts: 106
linuxarchfirefox
Re: unable to log in - corrupt rpmdb

EDIT: I encountered this again and was unable to recover using the above command and had to

Code:
rm /var/lib/rpm/__* && rpm --rebuilddb
 

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
annoyed: unable to install fedora 8 due to 'missing/corrupt packages' TheJamesP Installation and Live Media 5 30th December 2007 12:25 AM
rpmdb robghealey Using Fedora 3 4th January 2007 06:22 AM
messed up rpmdb CorneLinux Installation and Live Media 1 8th December 2006 04:47 PM
Rebuilding rpmdb... Xterminal Using Fedora 2 4th December 2004 06:11 PM


Current GMT-time: 00:02 (Monday, 20-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