Posts Tagged “rpm”

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.

Tags: , , , ,

Comments No Comments »

1. Log into the  linux server and install yum by doing the following;

rpm -ihv --nodeps http://mirror.centos.org/centos-4/4/os/i386/CentOS/RPMS/python-elementtree-1.2.6-5.el4.centos.i386.rpm
rpm -ihv --nodeps http://mirror.centos.org/centos-4/4/os/i386/CentOS/RPMS/python-urlgrabber-2.9.8-2.noarch.rpm
rpm -ihv --nodeps http://mirror.centos.org/centos-4/4/os/i386/CentOS/RPMS/yum-2.4.3-4.el4.centos.noarch.rpm

2.  Add the atomic repo.

rpm -ivh http://www.atomicorp.com/channels/atomic/centos/4/i386/RPMS/atomic-release-1.0-7.el4.art.noarch.rpm
rpm --nodeps -e php-domxml

3. If you want, you can remove yum afterwards;

rpm -e `rpm -aq | grep yum`
Tags: , ,

Comments No Comments »