I upgraded from Fedora 16 to Fedora 17 using the DVD. After the upgrade I issued yum update for local files for rpm and yum packages which I had downloaded via yumdownloader. It updated yum and rpm to the latest packages. I wondered why it did not load the new repos from the servers?
After that yum and rpm do not work any more:
# yum update
error: db5 error(22) from dbenv->open: Invalid argument
error: cannot open Packages index using db5 - Invalid argument (22)
error: cannot open Packages database in /var/lib/rpm
CRITICAL:yum.main:
Error: rpmdb open failed
# rpm --rebuilddb
error: db5 error(22) from dbenv->open: Invalid argument
error: cannot open Packages index using db5 - Invalid argument (22)
Any ideas?
---------- Post added at 09:52 PM ---------- Previous post was at 08:59 PM ----------
The usual way fixed this:
# cd /var/lib/rpm/
# mv __db.00* /tmp
# rpm --rebuilddb