Yum rpmdb open failed解决方案
跳到导航
跳到搜索
问题来了
[root@a]# yum install nethogs rpmdb: Thread/process 11414/140646431442848 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 CRITICAL:yum.main: Error: rpmdb open failed or err 错误:rpmdb: BDB0113 Thread/process 19565/139894720276544 failed: BDB1507 Thread died in Berkeley DB library 错误:db5 错误(-30973) 来自 dbenv->failchk:BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery 错误:无法使用 db5 - (-30973) 打开 Packages 索引 错误:无法从 /var/lib/rpm 打开软件包数据库 CRITICAL:yum.main:
解决过程
#根据提示可以知道rpm数据库被损坏, 原因 安装软件包的时候,可能程序哥手动终止了如是按照下面的方法进行重建 cd /var/lib/rpm/ #最好是备份一下 rm -rf __db.00* db_verify /var/lib/rpm/Packages rpm --rebuilddb yum clean all