rpm出错:Program version 4.3 doesn’t match environment version

输入命令
rpm -qa
的时候
系统报错:

rpmdb: Program version 4.3 doesn’t match environment version
error: db4 error(-30974) from dbenv->open: DB_VERSION_MISMATCH: Database environment version mismatch
error: cannot open Packages index using db3 - (-30974)
error: cannot open Packages database in /var/lib/rpm

解决方法:

cd /var/lib/rpm
rm -rf __*
rpm –rebuilddb

 

转自http://www.haw-haw.org/node/date/2008/10

你可能感兴趣的:(database)