[root@xxx www]# yum install git
Failed to set locale, defaulting to C
error: rpmdb: BDB0113 Thread/process 24887/140017982904128 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
[root@xxx www]# cd /var/lib/rpm
[root@xxx rpm]# ll
total 136764
-rw-r--r--. 1 root root 4448256 Dec 15 21:28 Basenames
-rw-r--r--. 1 root root 16384 Oct 18 14:01 Conflictname
-rw-r--r--. 1 root root 1380352 Dec 15 21:28 Dirnames
-rw-r--r--. 1 root root 32768 Dec 15 21:28 Group
-rw-r--r--. 1 root root 28672 Dec 15 21:28 Installtid
-rw-r--r--. 1 root root 53248 Dec 15 21:28 Name
-rw-r--r--. 1 root root 24576 Nov 9 00:02 Obsoletename
-rw-r--r--. 1 root root 129572864 Dec 15 21:28 Packages
-rw-r--r--. 1 root root 2199552 Dec 15 21:28 Providename
-rw-r--r--. 1 root root 380928 Dec 15 21:28 Requirename
-rw-r--r--. 1 root root 118784 Dec 15 21:28 Sha1header
-rw-r--r--. 1 root root 73728 Dec 15 21:28 Sigmd5
-rw-r--r--. 1 root root 8192 Oct 18 13:59 Triggername
-rw-r--r-- 1 root root 270336 Jan 10 22:54 __db.001
-rw-r--r-- 1 root root 81920 Jan 10 22:54 __db.002
-rw-r--r-- 1 root root 1318912 Jan 10 22:54 __db.003
[root@xxx rpm]# rpm --rebuilddb
[root@xxx rpm]# yum install db
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror, langpacks
Repository epel is listed more than once in the configuration
Repository epel is listed more than once in the configuration