rpm包安裝失敗的解決辦法

author: headsen  chenspa

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

 

1,故障現象:blog

# 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,解決辦法:class

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

 

3,驗證:date

【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%]
相關文章
相關標籤/搜索