报错
rpmdb: BDB0113 Thread/process 199450/140347256821824 failed: BDB1507 Thread died in Berkeley DB library
bash
错误:rpmdb: BDB0113 Thread/process 199450/140347256821824 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
解决
bash
[root@node4 rpm]# mkdir -p /tmp/db
[root@node4 rpm]# cd /var/lib/rpm
[root@node4 rpm]# mv __db.00* /tmp/db/ #移走__db开头的rpmdb文件
[root@node4 rpm]# rpm --rebuilddb #数据库重建
[root@node4 rpm]# yum clean all
已加载插件:fastestmirror
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
正在清理软件源: base extras updates
Cleaning up list of fastest mirrors
Other repos take up 1.0 M of disk space (use --verbose for details)