If you’ve every attempted to upgrade / update cpanel via easyapache via the control panel or shell access and return the following erorr, changes are the rpm database is corrupt and needs to be rebuilt;
!! Package system can not be repaired automatically !!
!! Please visit http://www.cpanel.net/support/could_not_ensurepkgs.htm for help with this error. !!
!! Restoring original working apache !!
To correct this, you simply need to check to make sure that yum and any rpm’s are not running by doing the following;
ps auxwww | grep yum
ps auxwww | grep rpm
After that, you need to do the following;
rm /var/lib/rpm/__db.* -rf
rpm -rebuilddb
This will rebuilt the rpm database and depending on what needs to be updated it can take some time to update. Once this is done however you should be able to run easyapache without error.
Entries (RSS)