deleted the files in /var/lib/rpm
did rpm --rebuilddb
error: failed to replace old database with new database!
error: replace files in /var/lib/rpm with files from /var/lib/rpmrebuilddb.26406 to recovererror: failed to remove directory /var/lib/rpmrebuilddb.26406: Directory not empty
but though i get the error, the __db.* files are re-created.
"rpm -qa kernel" - works
"rpm -e package-name" - doesn't work
error: cannot open Packages index using db3 - Permission denied (13)
error: cannot open Packages database in /var/lib/rpm
"rpm -uvh package-name" - doesn't work
error: cannot open Packages index using db3 - Permission denied (13)
error: cannot open Packages database in /var/lib/rpm
I researched it in Google and most solved the problem (database corruption) with --rebuilddb, then for those that this didn't did the rpm upgrade with -uvh, and solved it, but that doesn't work either. Now EV1 says we need to update the SSL certificates to use up2date, but you guessed it - rpm -Uvh doesn't work
Could it have anything to do with upgrading MySQL? That's the one and only thing I used rpm to upgrade and it worked. Are the mysql/rpm databases connected somehow?