cannot open Packages database in /var/lib/rpm

konrath

Well-Known Member
May 3, 2005
366
0
166
Brasil
Hello

During the CPanel update I get the error message below

error: can not open Packages database in / var / lib / rpm

I tried

rm /var/lib/rpm/__db.00*
rpm --rebuilddb
rpm -qa | sort

Result

[email protected] [/var/lib/rpm]# rpm -qa | sort
error: cannot open Packages database in /var/lib/rpm
no packages




------------------

I tried Tip of chirpy

1. Check for processes holding the rpm database open (usually in MUTEX/FUTEX states):

lsof | grep /var/lib/rpm

If it finds any, kill -9 them all.

2. Delete any temporary DB files:

rm -fv /var/lib/rpm/__*

3. Rebuild your RPM database:

rpm --rebuilddb -v -v


-----------------------

And the problem continues. Any suggestions? :confused:


Thank you
Konrath