rpm数据库错误,一般原因:yum更新等rpm软件安装进程被异常终止
[root@49bdfccd7f61 ~]# yum install -y xxx error: rpmdb: BDB0113 Thread/process 22858/140222685267712 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
修复
[root@49bdfccd7f61 ~]# cd /var/lib/rpm [root@49bdfccd7f61 rpm]# ls Basenames Dirnames Installtid Obsoletename Providename Sha1header Triggername __db.002 Conflictname Group Name Packages Requirename Sigmd5 __db.001 __db.003 [root@49bdfccd7f61 rpm]# rm -rf __db.00 __db.001 __db.002 __db.003 [root@49bdfccd7f61 rpm]# rm -rf __db.00* [root@49bdfccd7f61 rpm]# rpm --rebuilddb [root@49bdfccd7f61 rpm]# [root@49bdfccd7f61 ~]# yum install -y xxx
标签:__,49bdfccd7f61,root,failchk,DB,error,rpm From: https://www.cnblogs.com/Primzahl/p/18416867