标签:
问题:#yum install -y zip
error: db3 error(22) from dbenv->open: Invalid argument
error: cannot open Packages index using db3 - Invalid argument (22)
error: cannot open Packages database in /var/lib/rpm
CRITICAL:yum.main:
Error: rpmdb open failed
解决办法:
[root@cjj yum]# cd /var/lib/rpm/ [root@cjj rpm]# ls Basenames Dirnames Installtid Packages Pubkeys Sha1header Conflictname Filedigests Name Providename Requirename Sigmd5 __db.001 Group Obsoletename Provideversion Requireversion Triggername [root@cjj rpm]# rm -f __db.001 [root@cjj rpm]# rpm --rebuilddb [root@cjj rpm]# yum clean all \Loaded plugins: fastestmirror Cleaning repos: base extras updates zabbix zabbix-non-supported Cleaning up Everything Cleaning up list of fastest mirrors [root@cjj rpm]# yum update
修复完毕~~~
标签:
原文地址:http://www.cnblogs.com/xfbc/p/5407747.html