rpm包安装失败的解决办法

author: headsen  chen

date :  2018-10-15  14:24:36

 

1,故障现象:

# rpm -ivh zabbix-agent-3.4.11-1.el6.x86_64.rpm 
rpmdb: Thread/process 30318/139762932561824 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
warning: zabbix-agent-3.4.11-1.el6.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID a14fe591: NOKEY
rpmdb: Thread/process 30318/139762932561824 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

 

2,解决办法:

rm -f /var/lib/rpm/__db*

 

3,验证:

【root@jack:/mnt】# rpm -ivh zabbix-agent-3.4.11-1.el6.x86_64.rpm 
warning: zabbix-agent-3.4.11-1.el6.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID a14fe591: NOKEY
Preparing...                ########################################### [100%]
   1:zabbix-agent           ########################################### [100%]

 

转载于:https://www.cnblogs.com/kaishirenshi/p/9790795.html

你可能感兴趣的:(rpm包安装失败的解决办法)