yum安装软件失败:rpmdb: BDB0113 Thread/process 8178/139732838348864 failed
问题:
centos使用yum安装软件,失败报错
[liuke@VM_0_10_centos ~]$ sudo yum install yum install tmux -y
错误:rpmdb: BDB0113 Thread/process 8178/139732838348864 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:
Error: rpmdb open failed
解决方法:
[liuke@VM_0_10_centos ~]$ cd /var/lib/rpm
#非root管理员用户加sudo
[liuke@VM_0_10_centos ~]$ sudo rpm --rebuilddb
再次使用yum安装,成功。
End