腾讯云服务器系统:CentOS release 6.7 (Final),使用yum升级openssh时提示如下错误:
[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临时库文件
rm -fr /var/lib/rpm/__db.*
02、重建rpm数据库
rpm --rebuilddb
03、清理缓存及生产yumdb缓存
yum clean all
yum makecache
04、再次使用yum正常。
网友评论