yum/rpm出错“pmdb: Thread/process failed: Thread died in Berkeley DB library”

前阵子,在CentOS上使用yum/rpm时的一个报错,顺手记录一下吧:
[root@smilejay html]# yum install -y sysstat
rpmdb: Thread/process 5542/139697184122624 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:

解决方法:
暴力一点,直接删除一些DB文件吧。
[root@smilejay html]# rm -rf /var/lib/rpm/__db.*

master

Stay hungry, stay foolish.

发表评论

邮箱地址不会被公开。 必填项已用*标注

*