I'm trying to run yum update on my f15 system and I get an error saying to rebuild db. I've tried some soltions from forums but haven't had any success.
Below is a terminal session showing the output from the original error along with the things I have tried:
[root@localhost ~]# yum update
error: db4 error(-30974) from dbenv->open: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db4 - (-30974)
error: cannot open Packages database in /var/lib/rpm
CRITICAL:yum.main:
Error: rpmdb open failed
[root@localhost ~]# ps axfu | grep -e rpm -e yum # make sure there are no rpm/yum sessions running
root 13042 0.0 0.0 4432 760 pts/0 S+ 01:23 0:00 | \_ grep --color=auto -e rpm -e yum
[root@localhost ~]# rm /var/lib/rpm/__db.00
rm: cannot remove `/var/lib/rpm/__db.00': No such file or directory
[root@localhost ~]# rpm --rebuilddb
error: db4 error(-30974) from dbenv->open: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db4 - (-30974)