CentOS 8. DB_VERSION_MISMATCH: Database environment version mismatch

При установке пакетов при помощи yum или dnf получаем следующую картину:

Total                                                                                                                                                                              239 kB/s |  71 kB     00:00     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
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.
You can remove cached packages by executing 'yum clean packages'.
Error: Could not run transaction.

Лечится очень просто:

rm -f /var/lib/rpm/__db*

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *