騰訊云服務(wù)器系統(tǒng):CentOS release 6.7 (Final)蚪腋,使用yum升級(jí)openssh時(shí)提示如下錯(cuò)誤:
[root@10 ~]# yum update openssh
rpmdb: Thread/process 26116/140165929039616 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
解決方法:
01、刪除yum臨時(shí)庫(kù)文件
rm -fr /var/lib/rpm/__db.*
02、重建rpm數(shù)據(jù)庫(kù)
rpm --rebuilddb
03氮唯、清理緩存及生產(chǎn)yumdb緩存
yum clean all
yum makecache
04、再次使用yum正常。