How can I fix cPanel/WHM EasyApache failed YUM errors?

CPanel/WHM EasyApache failed YUM error:

While running EasyApache Yum is giving an error

!! The server’s system package manager, ‘YUM’, failed. !!

Cleaning out and rebuilding YUM should fix this. Here is the solution for this:

# yum clean headers

# yum clean packages

# yum clean metadata
# yum clean dbcache
# yum clean all

Run the yum update command, if all the above commands did not resolve the error:

# yum update

If the yum update failed it may be possible that the RPM database is corrupt it can be resolved by running the below commands

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

  • easyapache, yum, cpanel, whm
  • 343 Users Found This Useful
Was this answer helpful?

Related Articles

Your IP address has changed cPanel log in error. Here’s how to fix It and why

Your IP address has changed. Please log in again. There are 3 main situations in which this...

How do I add/create a MySQL database?

It is easy once you get used to it. Here is how to make a MySQL database connection ready....

How do I back up any part of my website?

We all know how important it is to back up your website. That is why Web Host Pro made sure it's...

How do I remove and add files on a new website?

Most new web hosting plans have a placeholder page or folder to show the website is working....

Why do I get a MySQL max_user_connections error?

The maximum number of simultaneous connections to your MySQL database is 25. This normally is not...