28 October 2010
Hi there. I did the suggestion Old-Polack wrote about. And here is the screen after thirty minutes:
[chris@localhost ~]$ su
Password:
su: incorrect password
[chris@localhost ~]$ su
Password:
[root@localhost chris]# rm -f var/lib/rpm/_db*
[root@localhost chris]# rpm -vv --rebuilddb
D: rebuilding database /var/lib/rpm into /var/lib/rpmrebuilddb.3002
D: creating directory /var/lib/rpmrebuilddb.3002
D: opening old database with dbapi 3
D: opening db environment /var/lib/rpm/Packages mpool:joinenv
BTW: I had to reboot, I pressed too many buttons. 
The command given above is
incorrect. The files wanting to be removed have a
double underscore at the beginning of the file name,
not a
single underscore as you have shown. Also there is no
/ before
var/lib/rpm, and that too needs to be there. (
/var/lib/rpm/__db.*) Therefore, the first command does
nothing and the
damaged files are still there.
Again start fresh with a new terminal, after closing the current one. At the
root prompt, enter;
[root@localhost chris]# ls -l /var/lib/rpm |grep dbI get this as a response; you should get something similar.
[root@littleboy ~]# ls -l /var/lib/rpm |grep db-rw-r--r-- 1 root root 0 2010-09-06 15:18 __
db.000
-rw-r--r-- 1 root root 24576 2010-10-28 15:48 __
db.001
-rw-r--r-- 1 root root 139264 2010-10-28 15:48 __
db.002
-rw-r--r-- 1 root root 663552 2010-10-28 15:48 __
db.003
Now try the
correct command to remove the files.
[root@localhost chris]# rm -f /var/lib/rpm/__db.*Then try the
ls -l command again.
[root@localhost chris]# ls -l /var/lib/rpm |grep db[root@localhost chris]#This time there should be just a
return to the prompt. If this is what you get, then you are ready to issue the command to rebuild the database.
[root@localhost chris]# rpm -vv --rebuilddbTry all that, and
post your results.