进行任何rpm操作时提示:
rpmdb: Program version 4.2 doesn't match environment version
error: db4 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
解决方法:
# rm -rf /var/lib/rpm/__db*
# rpm --rebuilddb
重启rpmdb。
阅读(3791) | 评论(0) | 转发(0) |