上一篇: linux的test命令
rpmdb: Program version 4.3 doesn’t match environment version
[ 2009/12/31 15:59 | by selboo ]
输入命令
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