Symptoms
When performing a cPanel update, the following error occurs:
***** FATAL: Error testing if the RPMs will install: Test install failed: error: Failed dependencies:
clamd conflicts with cpanel-clamav-0.101.5-5.cp1186.x86_64
data(clamav) is needed by (installed) clamav-server-1:0.101.4-3.el7.x86_64
clamav-filesystem = 1:0.101.4-3.el7 is needed by (installed) clamav-server-1:0.101.4-3.el7.x86_64
clamav-lib = 1:0.101.4-3.el7 is needed by (installed) clamav-server-1:0.101.4-3.el7.x86_64
libclamav.so.9()(64bit) is needed by (installed) clamav-server-1:0.101.4-3.el7.x86_64
libclamav.so.9(CLAMAV_PRIVATE)(64bit) is needed by (installed) clamav-server-1:0.101.4-3.el7.x86_64
libclamav.so.9(CLAMAV_PUBLIC)(64bit) is needed by (installed) clamav-server-1:0.101.4-3.el7.x86_64
see https://go.cpanel.net/rpmcheckfailed for more information
The Administrator will be notified to review this output when this script completes
Description
This occurs when the cPanel update attempts to install cpanel-clamav when a third-party installation of ClamAV is installed. The cPanel update attempts to install cpanel-clamav if the RPM target is set to installed in the /var/cpanel/rpm.versions.d/local.versions file.
Example:
# cat /var/cpanel/rpm.versions.d/local.versions
---
file_format:
version: 2
target_settings:
clamav: installed
Workaround
Option 1: If you do not need cpanel-clamav, run the following script to remove the RPM target from the /var/cpanel/rpm.versions.d/local.versions file:
/usr/local/cpanel/scripts/update_local_rpm_versions --del target_settings.clamav
Option 2: If you prefer to use cpanel-clamav, run the command below to remove the third-party ClamAV installation (replace $PACKAGE with the third-party ClamAV packages causing conflicts during the cPanel update).
yum -y remove $PACKAGE
Comments
0 comments
Article is closed for comments.