This document provides examples of common RPM installation failures. You can use these examples to help identify and resolve issues that you may encounter when you install RPMs.
Important:
This document only applies to installation failures for operating system-related RPMs on Red Hat-based servers. This document does not include information for RPMs that The rpm.versions System controls or for packages on servers running the Ubuntu® operating system.
To install operating system packages, use WHM’s Install Distro Packages interface (WHM » Home »Software »Install Distro Packages).
To change how your server processes updates for these packages, use the Operating System Package Updates section of WHM’s Update Preferences interface (WHM » Home » Server Configuration » Update Preferences).
.2Save your changes and run the RPM installation process again.
The package is obsoleted error
This error generally occurs due to conflicts that exist between the RPMs and a third-party repository. An RPM installation may fail if the system classifies a package as obsolete.
The package is obsoleted error Error
In this example, the system classifies the curl-devel package as obsolete:
[20130208.081257] Setting up Install Process
[20130208.081257]
Package curl-devel is obsoleted by libcurl-devel, trying to install
libcurl-devel-7.21.7-5.el5.remi.2.x86_64 instead
[20130208.081257] Package libcurl-devel-7.21.7-5.el5.remi.2.x86_64 already installed and latest version
[20130208.081257]
Package curl-devel is obsoleted by libcurl-devel, trying to install
libcurl-devel-7.21.7-5.el5.remi.2.x86_64 instead
[20130208.081257] Package libcurl-devel-7.21.7-5.el5.remi.2.x86_64 already installed and latest version
[20130208.081257] Nothing to do
[20130208.081258] E Sysup: Needed system RPMs were not installed: curl-devel
[20130208.081258] ***** FATAL: Cannot proceed. Needed system RPMs were not installed.
[20130208.081258] The Administrator will be notified to review this output when this script completes
[20130208.081258] E Detected events which require user notification during updatenow. Will send iContact the log
=> Log closed Fri Feb 8 08:12:58 2013
[20130208.081258]
E Running `/usr/local/cpanel/scripts/updatenow --upcp
--log=/var/cpanel/updatelogs/update.1360329171.log` failed, exited with
code 18(signal =0)
Troubleshoot The package is obsoleted error
To troubleshoot this error, perform the following steps:
.1Run the rpm -qa|grep curl command to determine which third-party curl RPMs exist on your system. The output will resemble the following example:
compat-libcurl3-7.15.5-2.el5.remi
curl-7.15.5-15.el5
curl-7.21.7-5.el5.remi.2
libcurl-devel-7.21.7-5.el5.remi.2
libcurl-7.21.7-5.el5.remi.2
.2Run the ls /etc/yum.repos.d command to confirm whether your server uses a third-party repository. The output will resemble the following example:
./ CentOS-Debuginfo.repo epel.repo remi.repo.save
../ CentOS-Media.repo epel-testing.repo
CentOS-Base.repo CentOS-Vault.repo remi.repo
.3Disable the third-party repository that caused the error. To do this, run the following command:
yum-config-manager --disable repositoryname
Note:In this example, repositoryname represents the third-party repository to disable.
.4Run the RPM installation process again.
RPM conflicts
RPMs in the system’s update log that do not match similar RPMs in the repository are commonly known as “rogue RPMs,” and cause the installation process to fail.
RPM conflicts Error
In this example, the MySQL RPM causes the installation process to fail:
[20130128.230346] Testing RPM transaction
[20130128.230348] error: Failed dependencies:
[20130128.230348] MySQL conflicts with *mysql-5.0.77-4.el5_4.2.i386*
[20130128.230348] W Exit Code: 254
[20130128.230348] ***** FATAL: Test install failed: error: Failed dependencies:
[20130128.230348] MySQL conflicts with mysql-5.0.77-4.el5_4.2.i386
[20130128.230348] The Administrator will be notified to review this output when this script completes
[20130128.230348] E Error testing if the RPMs will install: Died at /usr/local/cpanel/scripts/updatenow.static line 12517.
[20130128.230348] E Detected events which require user notification during updatenow. Will send iContact the log
troubleshoot RPM conflicts
To troubleshoot this error, perform the following steps
.1Run the rpm -qa|grep -i ^mysql command to locate the version of the MySQL RPM in the update log. The output will resemble the following example:
mysql-5.0.77-4.el5_4.2
.2Run the previous command on another server and compare the output to the output of the first server. For example:
MySQL-server-5.5.28-2.cp.1148
Note:The difference in RPM versions indicates that the mysql-5.0.77-4.el5_4.2 RPM is a rogue RPM, which is why it conflicts with the MySQL installation.
.3Remove the “rogue” RPM file. For example:
rpm -e --nodeps mysql-5.0.77-4.el5_4.2
.4Run the RPM installation process again.
RPM package file conflicts
An RPM installation can fail if there are package file conflicts. This can occur when a previous RPM file isn’t removed from the system. You must remove any conflicting files before you can successfully install an RPM.
RPM package file conflicts Error
In this example, the clamav-0.100.3-1.el6.x86_64 file conflicts with the RPM package file:
[2019-05-30 16:02:13 +0500] All files Staged
[2019-05-30 16:02:13 +0500] Testing if the newly downloaded RPMS can be installed without conflict
[2019-05-30 16:02:14 +0500]file /etc/rc.d/init.d/clamd from install of cpanel-clamav-0.101.2-1.cp1180.x86_64 conflicts with file from package clamd-0.100.3-1.el6.x86_64
[2019-05-30 16:02:14 +0500] W Exit Code: 73
[2019-05-30 16:02:14 +0500] ***** FATAL: Test install failed: file /etc/rc.d/init.d/clamd from install of cpanel-clamav-0.101.2-1.cp1180.x86_64 conflicts with file from package clamd-0.100.3-1.el6.x86_64
Troubleshoot RPM package file conflicts
To troubleshoot this error, perform the following steps:
.1Run the rpm -qa | grep -i clamav command to locate the version of the ClamAV RPM in the update log. The output will resemble the following example:
An RPM installation fails if the update process cannot unpack the new package to the correct location. Binaries that you cannot modify (immutable binaries) cause this error.
Failure to unpack a new package Error
In this example, both the tar and unzip packages cause the installation process to fail:
[20130210.141900] Running Transaction
[20130210.141903]
[20130210.141903] Installing :gzip1/3
[20130210.141903]
[20130210.141903]
Installing :
unzip2/3Error
unpacking rpm package unzip-5.52-3.el5.i386
[20130210.141903]
[20130210.141903] error: unpacking of archive failed on file /usr/bin/unzip: cpio: rename
[20130210.141903]
[20130210.141903]
Installing :
tar3/3Error
unpacking rpm package 2:tar-1.15.1-32.el5_8.i386
[20130210.141903]
[20130210.141903] error: unpacking of archive failed on file /bin/tar: cpio: rename
E Sysup: Needed system RPMs were not installed: tar, unzip, wget
[20130210.141910] ***** FATAL: Cannot proceed. Needed system RPMs were
not installed.
[20130210.141910] The Administrator will be notified to review this output when this script completes
[20130210.141910] E Detected events which require user notification during updatenow. Will send iContact the log
Troubleshoot Failure to unpack a new package
To troubleshoot this error, perform the following steps:
.1Run the lsattr /usr/bin/unzip command to determine whether immutable binaries caused this error. The following example indicates that the system contains immutable binaries:
----i-------- /usr/bin/unzip
----i-------- /bin/tar
.2Remove the immutable flags. To do this, run the following commands:
chattr -i /usr/bin/unzip
chattr -i /bin/tar
.3Run the RPM installation process again.
The Your RPM database appears unstable error
An RPM installation fails if the destination directory is immutable or full.
The Your RPM database appears unstable error Error
In this example, any attempt to install an RPM causes the installation process to fail.
[root@read-only ~]# /scripts/upcp --force
[2017-07-21 12:20:48 -0500] Checking that the RPM DB is