Symptom:
WHM/cPanel updates (/scripts/upcp) fails with the following error:
[2021-01-27 10:00:54 -0700] Testing if the newly downloaded RPMS can be installed without conflict
[2021-01-27 10:00:54 -0700] Testing RPM transaction
[2021-01-27 10:00:55 -0700] clamav >= 0.100.0 is needed by (installed) asl-1:5.0-16656.el7.art.x86_64
[2021-01-27 10:00:55 -0700] clamd >= 0.100.0 is needed by (installed) asl-1:5.0-16656.el7.art.x86_64
[2021-01-27 10:00:55 -0700] W Exit Code: 49
[2021-01-27 10:00:55 -0700] ***** FATAL: Test install failed: error: Failed dependencies:
[2021-01-27 10:00:55 -0700] clamav >= 0.100.0 is needed by (installed) asl-1:5.0-16656.el7.art.x86_64
[2021-01-27 10:00:55 -0700] clamd >= 0.100.0 is needed by (installed) asl-1:5.0-16656.el7.art.x86_64
[2021-01-27 10:00:55 -0700] The Administrator will be notified to review this output when this script completes
[2021-01-27 10:00:55 -0700] ***** FATAL: Error testing if the RPMs will install: Test install failed: error: Failed dependencies:
[2021-01-27 10:00:55 -0700] clamav >= 0.100.0 is needed by (installed) asl-1:5.0-16656.el7.art.x86_64
[2021-01-27 10:00:55 -0700] clamd >= 0.100.0 is needed by (installed) asl-1:5.0-16656.el7.art.x86_64
[2021-01-27 10:00:55 -0700] see https://go.cpanel.net/rpmcheckfailed for more information
[2021-01-27 10:00:55 -0700] The Administrator will be notified to review this output when this script completes
[2021-01-27 10:00:55 -0700] Removing staged files and directories for binaries/linux-c7-x86_64, cpanel
[2021-01-27 10:01:17 -0700] Removing staged files and directories for paper_lantern
=> Log closed Wed Jan 27 10:01:18 2021
[2021-01-27 10:01:18 -0700] 17% complete
[2021-01-27 10:01:18 -0700] E Running `/usr/local/cpanel/scripts/updatenow --upcp --log=/var/cpanel/updatelogs/update.1611766808.log` failed, exited with code 1 (signal = 0)
=> Log closed Wed Jan 27 10:01:19 2021
=> Log closed Wed Jan 27 10:01:19 2021
Description:
The asl package is not a required package/dependency for the cPanel-provided ClamAV plugin, however, it is dependency for the third-party version of ClamAV as you can see here:
yum deplist clamd-0.103.0-15683.el7.art.x86_64 | grep -i asl
* asl-4.0: www2.atomicorp.com
This means that the third-party version of ClamAV is installed on the server, sometimes alongside the cPanel-provided version. You can confirm that by running the following command:
rpm -qa | grep -i clam
clamav-db-0.103.0-15683.el7.art.x86_64
cpanel-perl-530-File-Scan-ClamAV-1.95-1.cp1186.noarch
clamav-0.103.0-15683.el7.art.x86_64
cpanel-clamav-virusdefs-0.101.5-1.cp1186.x86_64
clamd-0.103.0-15683.el7.art.x86_64
cpanel-clamav-0.101.5-1.cp1186.x86_64
The highlighted ones are the cPanel packages and the rest are the third-party packages.
Workaround:
You need to remove the third-party ClamAV packages from the server:
yum -y remove clamav