lost and found ( for me ? )

yum update error : rpmdb: BDB0113 Thread/process 12738/140625764685632 failed

small tips.
How to fix a yum related problem.

# cat /etc/redhat-release
Fedora release 18 (Spherical Cow)

# uname -ri
3.9.4-200.fc18.x86_64 x86_64

# yum update
error: rpmdb: BDB0113 Thread/process 12738/140625764685632 failed: BDB1507 Thread died in Berkeley DB library
error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db5 -  (-30973)
error: cannot open Packages database in /var/lib/rpm
CRITICAL:yum.main:

Error: rpmdb open failed
#



# ls /var/lib/rpm/*
/var/lib/rpm/Basenames     /var/lib/rpm/Group         /var/lib/rpm/Requirename
/var/lib/rpm/Conflictname  /var/lib/rpm/Installtid    /var/lib/rpm/Sha1header
/var/lib/rpm/__db.001      /var/lib/rpm/Name          /var/lib/rpm/Sigmd5
/var/lib/rpm/__db.002      /var/lib/rpm/Obsoletename  /var/lib/rpm/Triggername
/var/lib/rpm/__db.003      /var/lib/rpm/Packages
/var/lib/rpm/Dirnames      /var/lib/rpm/Providename

rm __db.00* files
# rm /var/lib/rpm/__db.00* -f

# ls /var/lib/rpm/*
/var/lib/rpm/Basenames     /var/lib/rpm/Name          /var/lib/rpm/Sha1header
/var/lib/rpm/Conflictname  /var/lib/rpm/Obsoletename  /var/lib/rpm/Sigmd5
/var/lib/rpm/Dirnames      /var/lib/rpm/Packages      /var/lib/rpm/Triggername
/var/lib/rpm/Group         /var/lib/rpm/Providename
/var/lib/rpm/Installtid    /var/lib/rpm/Requirename

try “yum update”
okay. I was able to solve the problem.
# yum update -y
Loaded plugins: langpacks, presto, refresh-packagekit, versionlock
No Packages marked for Update

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.