The server’s system package manager, ‘YUM’ failed : Error with easyapache

EasyApache is software that sets up, adjusts, and validates your Apache web server, PHP, and other elements of your web server.

Most of the times we need to run EasyApache on cPanel Linux server to update version or install modules.

In some cases things go wrong and EasyApache may fail. Hence, Here I have came up with this post which might help you to fix such error:

!! The server's system package manager, 'YUM', failed. !

Solution : 1

Try executing below commands:

yum clean headers
yum clean packages
yum clean metadata
yum clean all

Solution : 2

Run the update command, if all of the above mentioned commands didn’t solve the issue.

First try running yum update command

yum -y update

If update fails then it seems to be the RPM database corruption issue which can be resolved by running below commands:

# rm -f /var/lib/rpm/__db.*
# rpm -vv –rebuilddb
# yum update

Solution : 3

If the first solution doesn’t work, Most probably you need to check the OpenSSL on server.

file /usr/lib/openssl/engines/libsureware.so from install of openssl-0.9.8e-12.el5_5.7.i386 conflicts
with file from package openssl-0.9.8e-12.el5_5.7.i686
file /usr/lib/openssl/engines/libubsec.so from install of openssl-0.9.8e-12.el5_5.7.i386 conflicts 
with file from package openssl-0.9.8e-12.el5_5.7.i686

Most of the times issues arise due to packages with 32 bit and 64 bit. Always make sure to install correct packages as per the OS bit.

Just re-install OpenSSL using below command:

rpm -e --justdb --nodeps openssl.i386
yum install openssl

Once installation is completed proceed with EasyApache.