Showing posts with label rpm. Show all posts
Showing posts with label rpm. Show all posts

30 November 2015

Fixing rpmdb issue: Thread died in Berkeley DB library

While running rpm for any package formation/installation if you encounter an rpmdb error (during yum/rpm operations), like given in red, it means that the rpm db got corrupted & broken


rpmdb: Thread/process 10135/140022683015072 failed: Thread died in Berkeley DB library error: db3 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery error: cannot open Packages index using db3 - (-30974) error: cannot open Packages database in /var/lib/rpm rpmdb: Thread/process 10135/140022683015072 failed: Thread died in Berkeley DB library error: db3 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery error: cannot open Packages database in /var/lib/rp # try the following steps to backup and rebuild rpmdb $ cd /var/lib/rpm/ $ mkdir faileddb $ cp -a __db* faileddb $ rm -rf __db.[0-9][0-9]* $ rpm --quiet -qa $ rpm --rebuilddb $ yum clean all