Error: No Cpanel server easy apache error method to auto repair package system Suggestion

Written on 6:35 PM by David S Anand

Cpanel RHEL 5 loaded box gave error on easyapache
Error: No method to auto repair package system


Cpanel suggestion

Suggestion : This means that Cpanel::SysPkgs's config check returned a failed status and does not have a way to try to fix what it detected. You will need to manually troubleshoot your OS's update system at this point

Since cpanel uses RPM just checked yum that returned error
error: cannot open Packages index using db3 - (-30977)
error: cannot open Packages database in /var/lib/rpm
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in ?
yummain.main(sys.argv[1:])
TypeError: rpmdb open failed
error: cannot open Packages database in /var/lib/rpm

FIX
root@host [/var/lib/rpm]# rm /var/lib/rpm/__db*
rm: remove regular empty file `/var/lib/rpm/__db.000'? y
rm: remove regular file `/var/lib/rpm/__db.001'? y
rm: remove regular file `/var/lib/rpm/__db.002'? y
rm: remove regular file `/var/lib/rpm/__db.003'? y

root@host [/var/lib/rpm]# rpm --rebuilddb

Then try the easyapache will work ...

If you enjoyed this post Subscribe to our feed

No Comment

Post a Comment