Fedora Linux Support Community & Resources Center
  #1  
Old 12th January 2012, 11:58 PM
n6rb2012 Offline
Registered User
 
Join Date: Jan 2012
Location: n/a
Posts: 1
linuxchrome
rpmdb issue: cannot reinit or rebuild, also yum is broken!

hey all:


first post today. having a fairly major issue that i have not yet managed to solve on my own.

i have already performed several searches to troubleshoot this issue and none of the typical
remedies appear to work.

as you can see below my yum / rpm database(s) are corrupted and the system will not let me rebuild them


Code:
bash-4.2# rpm --rebuilddb
error: db4 error(22) from dbenv->open: Invalid argument
error: cannot open Packages index using db4 - Invalid argument (22)
bash-4.2# rpm --initdb
error: db4 error(22) from dbenv->open: Invalid argument
error: cannot open Packages index using db4 - Invalid argument (22)
bash-4.2# yum clean all
error: db4 error(22) from dbenv->open: Invalid argument
error: cannot open Packages index using db4 - Invalid argument (22)
error: cannot open Packages database in /var/lib/rpm
CRITICAL:yum.main:

Error: rpmdb open failed
i have already tried deleting the .rpm.lock file and this seems not to help.

here is the output of "ls -al /var/lib/rpm"

Code:
bash-4.2# pwd
/var/lib/rpm
bash-4.2# ls -al
total 99980
drwxr-xr-x.  2 root root     4096 Jan 12 18:42 .
drwxr-xr-x. 54 root root     4096 Jan 12 18:42 ..
-rw-r--r--.  1 root root  7323648 Jan 12 18:04 Basenames
-rw-r--r--.  1 root root    16384 Jan 10 00:27 Conflictname
-rw-r--r--.  1 root root  1622016 Jan 12 18:04 Dirnames
-rw-r--r--.  1 root root    45056 Jan 12 18:04 Group
-rw-r--r--.  1 root root    36864 Jan 12 18:04 Installtid
-rw-r--r--.  1 root root    98304 Jan 12 18:04 Name
-rw-r--r--.  1 root root    40960 Jan  9 13:59 Obsoletename
-rw-r--r--.  1 root root 90607616 Jan 12 18:04 Packages
-rw-r--r--.  1 root root  1249280 Jan 12 18:04 Providename
-rw-r--r--.  1 root root   888832 Jan 10 00:27 Requirename
-rw-r--r--   1 root root        0 Jan 12 18:42 .rpm.lock
-rw-r--r--.  1 root root   245760 Jan 12 18:04 Sha1header
-rw-r--r--.  1 root root   151552 Jan 12 18:04 Sigmd5
-rw-r--r--.  1 root root     8192 Jan  4 08:28 Triggername
this is my main production machine and i would like to have it as clean & correct as possible.

if anyone has any suggestions or helpful hints i would be most appreciative.

thank you in advance,

n6

---------- Post added at 11:58 PM ---------- Previous post was at 11:43 PM ----------

nevermind for some reason this was fixed by rebooting

forgot to mention this was a Fedora 16 install

probably just a late in the day fix to some packages in rawhide ?
Reply With Quote
  #2  
Old 13th January 2012, 12:07 AM
tox
Guest
 
Posts: n/a
windows_7firefox
Re: rpmdb issue: cannot reinit or rebuild, also yum is broken!

did you try any of this? http://www.oldrpm.org/hintskinks/repairdb/
Reply With Quote
Reply

Tags
broken, rebuild, reinit, rpmdb, 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
rpmdb broken yum panic messed up system geomar Using Fedora 6 27th November 2007 05:41 PM
yum error rpmdb flebber Using Fedora 3 6th January 2007 02:16 PM
rpmdb robghealey Using Fedora 3 4th January 2007 06:22 AM


Current GMT-time: 15:51 (Friday, 19-09-2014)

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