欢迎关注格物致知 。 正在加载今日诗词....

yum报错Thread died in Berkeley DB library

Linux gavin 84℃

在centos7上运行yum list后报错

error: rpmdb: BDB0113 Thread/process 3336/140141695063872 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
CRITICAL:yum.main:

Error: rpmdb open failed

提示rpm相关的数据库损坏了

解决方案

$ mkdir /var/lib/rpm/backup
$ cp -a /var/lib/rpm/__db* /var/lib/rpm/backup/
$ rm -f /var/lib/rpm/__db.[0-9][0-9]*
$ rpm –quiet -qa
$ rpm –rebuilddb
$ yum clean all

转载请注明:格物致知 » yum报错Thread died in Berkeley DB library

喜欢 (2)