Site icon 时鹏亮的Blog

CentOS yum 报错Thread died in Berkeley DB library解决方案

请知悉:本文最近一次更新为 3年 前,文中内容可能已经过时。

最近有台VPS执行yum update时报错:

error: rpmdb: BDB0113 Thread/process 15231/139876244256832 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

搜了下,解决方案如下:

mv /var/lib/rpm/__db* /tmp/
rpm --rebuilddb
yum clean all

参考资料

Yum Update: DB_RUNRECOVERY Fatal error, run database recovery


如您从本文得到了有价值的信息或帮助,请考虑扫描文末二维码捐赠和鼓励。

尊重他人劳动成果。转载请务必附上原文链接,我将感激不尽。


与《CentOS yum 报错Thread died in Berkeley DB library解决方案》相关的博文:

Exit mobile version