[root@xiufu]# rpm -qa | grep telnet
error: rpmdb: BDB0113 Thread/process 275997/139858872588288 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
error: rpmdb: BDB0113 Thread/process 275997/139858872588288 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 database in /var/lib/rpm
[root@xiufu]#
[root@xiufu]# yum clean all
error: rpmdb: BDB0113 Thread/process 275997/139858872588288 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
解决办法:
cd /var/lib/rpm
ls | grep 'db.' ?
for i in $(ls | grep 'db.');do mv $i $i.bak;done
#
ls | grep 'db.'
参考:yum提示Error: rpmdb open failed 报错处理_Grey_002的博客-CSDN博客
|