Linux rpm 报错Thread died in Berkeley DB library

原帖地址:https://blog.csdn.net/levy_cui/article/details/51143180

[root@server65 ~]# rpm -qa
rpmdb: Thread/process 14357/139885775857408 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
rpmdb: Thread/process 14357/139885775857408 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 database in /var/lib/rpm

此时需要清理以下rpm的临时文件

# rm -rf /var/lib/rpm/__db.*

你可能感兴趣的:(服务器)