BuycPanel Blog

BuycPanel Blog

Latest news and updates

How to Resolve RPM Installation Failures

Posted by Jamison on 17 11 2016.

Red Hat Package Manager, more commonly referred to as RPM for short, allows users to deploy files faster and with much more ease. This system creates standards and regulations involving software installation, including how one can install software on a system. cPanel and WHM servers already come with several pre-installed RPMs, but you still have the option to get more. Also, RPMs make it easier to update your systems.

 

Although it makes the lives of webmasters and web owners a lot easier, RPM installation can still fail at times. Knowing more about these problems you may face will allow you to approach it with more confidence and resolve it quickly.

 

Error No. 1: “The no package available”

 

A common RPM-related error, “The no package available” error occurs when a file called “/etc/yum.conf” does not include a required update package, or when your server does not have the necessary package for installation. A common…

Red Hat Package Manager, more commonly referred to as RPM for short, allows users to deploy files faster and with much more ease. This system creates standards and regulations involving software installation, including how one can install software on a system. cPanel and WHM servers already come with several pre-installed RPMs, but you still have the option to get more. Also, RPMs make it easier to update your systems.

 

Although it makes the lives of webmasters and web owners a lot easier, RPM installation can still fail at times. Knowing more about these problems you may face will allow you to approach it with more confidence and resolve it quickly.

 

Error No. 1: “The no package available”

 

A common RPM-related error, “The no package available” error occurs when a file called “/etc/yum.conf” does not include a required update package, or when your server does not have the necessary package for installation. A common situation wherein this error occurs is the absence of wget package.

 

Here are the steps to troubleshoot this problem:

 

  1. Using a text editor, open the file for the /etc/yum.conf. In the exclude line, look for the required package and remove it.
  2. Hit on the “Save” button for the changes to take place and then perform the update process once again.

 

Error No. 2: “The package is obsoleted”

 

This error usually takes place because of conflicts between RPMS and another entity, usually a third-party repository. When this issue occurs, the RPM installation may fail when the system considers the package obsolete. An example is when the system categorizes the curl-devel package as “obsolete.”

 

For troubleshooting this error, follow these steps:

 

  1. Figure out which third-party curl RPMs you have on your system by executing the “rpm -qa|grep curl” command.
  2. To confirm your servers have a third-party repository in operation, run this command: “ls /etc/yum.repos.d” (do not include the quotation marks).
  3. Execute the command: “yum-config-manager – disable repositoryname” (exclude the quotation marks) to disable the error-causing third-party repository. In the command line mentioned above, the “repositoryname” refers to the third-party repository you should eliminate.
  4. Perform the update process once again.

 

Error No. 3: Conflicts with the RPM itself

 

Rouge RPMs can also develop in the repository. Basically, these refers to RPMs in the update log of the system’s not matching similar RPMs contained in the repository. These rouge RPMs can lead to installation failures. For example, problems with the MySQL RPM can cause an unsuccessful installation process.

 

For the troubleshooting of this particular problem, try these steps:

 

  1. Execute the command line: “rpm qa|grep -i ^mysql” (without the quotation marks). This will look for the MySQL RPM version in the system’s update log.
  2. Using another server, execute the same command. After doing so, compare the two outputs you came up with.
  3. Get rid of rogue RPM.
  4. Proceed with re-running the update process.

 

RPM plays important roles in your day-to-day cPanel and WHM tasks, so make sure it works optimally and troubleshoot issues right away.