yum执行报错解决办法

[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

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值