yum提示“DB_RUNRECOVERY Fatal error, run database recovery”的解决方案
症状
在yum安装过程中中断后,再次运行yum后提示 “DB_RUNRECOVERY Fatal error, run database recovery”
[lujun9972@VM_0_8_centos lctt-scripts]$ sudo yum install tidy tidyp 错误:rpmdb: BDB0113 Thread/process 26426/139754522343232 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
解决方法
mv /var/lib/rpm/__db* /tmp/ rpm --rebuilddb yum clean all