执行“yum update”命令时报错“error: rpmdb: BDB0113 Thread/process 1900886/139826094684032 failed: BDB1507 Thread died in Berkeley DB library”


执行“yum update”命令时报错:

[root@rancher ~]# yum update
error: rpmdb: BDB0113 Thread/process 1900886/139826094684032 failed: BDB1507 Thread died in Berkeley DB library
error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db5 -  (-30973)
error: cannot open Packages database in /var/lib/rpm
Error: Error: rpmdb open failed
[root@rancher ~]#

解决

执行如下命令:

mv /var/lib/rpm/__db.00* /tmp/&&yum clean all

重新执行更新命令即可

声明:初心|版权所有,违者必究|如未注明,均为原创|本网站采用BY-NC-SA协议进行授权

转载:转载请注明原文链接 - 执行“yum update”命令时报错“error: rpmdb: BDB0113 Thread/process 1900886/139826094684032 failed: BDB1507 Thread died in Berkeley DB library”


愿你勿忘初心,并从一而终