News公告

PM 數據庫損壞的問題

解決 RPM 數據庫損壞的問題

RPM: error: db5 error(-30969) from dbenv->open: BDB0091 DB_VERSION_MISMATCH: Database environment version mismat
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.
You can remove cached packages by executing ‘yum clean packages’.
Error: Could not run transaction.

[root@mm520 ~]# rm /var/lib/rpm/__**

[root@mm520 ~]# rpm –rebuilddb

[root@mm520 ~]# yum clean all