执行yum提示错误 thread died in berkeley db library

问题描述

在执行yum安装或者其他命令时,有如下提示:

解决方法

1
2
3
4
5
6
[root@VM-0-14-centos /]# cd /var/lib/rpm
[root@VM-0-14-centos rpm]# ls
Basenames __db.001 __db.003 Group Name Packages Requirename Sigmd5
Conflictname __db.002 Dirnames Installtid Obsoletename Providename Sha1header Triggername
[root@VM-0-14-centos rpm]# rm -rf __db*
[root@VM-0-14-centos rpm]# rpm --rebuilddb