Description of Problem: After upgrading to any rpm version newer than rpm-4.0.3-0.88 on both redhat 7.1 and roswell leaves rpm unusable. Version-Release number of selected component (if applicable): rpm-4.0.3-0.83, rpm-4.0.3-0.88, rpm-4.0.3-0.91 and rpm-4.0.3-0.93 How Reproducible: Install roswell and then just install some normal rpm's (normal in the sense: totally unrelated to rpm, db, glibc etc.) I'm not 100% sure about this but maybe it was caused by installing a package that was built on the system itself ?? Like so rpm --rebuild gShield-2.7-1.src.rpm rpm -Uvh gShield-2.7-1.i386.rpm Another system had redhat 7.1 and has the same error after installing rpm-4.0.3-0.83.i386.rpm, ... popt-4.0.3-0.83.i386.rpm or any newer version up untill rpm-4.0.3-0.93 This is the third time over I have to recover the database (I don't make backups every hour on non production systems) so I'll try my best not to reproduce it anymore :) Actual Results: All rpm commands fail with: rpmdb: Program version 3.3.11 doesn't match environment version 3.3.4 error: db3 error(22) from dbenv->open: Invalid argument error: cannot open Packages index using db3 - Invalid argument (22) Expected Results: rpm works Additional Information: This was already reported *in a comment* on 52470 but that was closed with status WONTFIX. Why ??
You need to do rm /var/lib/rpm/__db* And, bug #52470 was closed WONTFIX because the database was too badly damaged --for unknown reasons -- to save.