centos8:epel-release:dbenv->open:BDB0091 DB_VERSION_MISMATCH: Database environment version mismatch

centos8:epel-release:dbenv->open:BDB0091 DB_VERSION_MISMATCH: Database environment version mismatch
centos8源码编译vpp执行make install-dep出现的问题同下。
进行yum install epel-releasec操作的时候出现图片上的问题:
RPM: error: db5 error(-30969) from dbenv->open: BDB0091 DB_VERSION_MISMATCH: Database environment version mismatch
RPM: error: cannot open Packages index using db5 – (-30969)
RPM: error: cannot open Packages database in /var/lib/rpm
The downloaded packages were saved in cache until the next successful transaction.

解决方法:
删除rpm管理数据库,然后重建

cd /var/lib/rpm
rm -rf __db.*
rpm --rebuilddb

然后重新yum install epel-releasec
centos8:epel-release:dbenv->open:BDB0091 DB_VERSION_MISMATCH: Database environment version mismatch
OK!

上一篇:使用PreTranslateMessage替代钩子函数处理键盘消息


下一篇:MongoDB 存储过程