I tried to use find in Gnome and got an alert that the database hadn't been updated in more than 8 days. I didn't remember exactly how to update it so I tried running
Code:
[root@localhost linmix]# updatedb
later I remembered that the original command had been
Code:
[root@localhost linmix]# rpm --updatedb
but the first one appeared to work allright. Then I tried to find out if I had a dependency installed and did rpm -q with the following result:
Code:
[root@localhost linmix]# rpm -qi compat-libstdc++
error: cannot get shared lock on /var/lib/rpm/Packages
error: cannot open Packages index using db3 - Operation not permitted (1)
error: cannot open Packages database in /var/lib/rpm
package compat-libstdc++ is not installed
I think all three errors are related to the same problem and that it may be due to the bad command I issued before. I've thought of manually removing the database (/var/lib/rpm/Packages) and making a new database (something like "rpm --makedb", probably not exactly right, but I can't check it now), but then I thought that this might affect the Install/Uninstall utility (although that always reads the headers, whatever that means). Can anyone tell me if my assumptions are correct, and how to fix this error?