Symptoms
When performing a cPanel update, you encounter an error similar to the following.
***** 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
The package conflict occurs when the cPanel-provided ClamAV is configured as installed while a third-party installation of ClamAV is installed. To correct the conflict, you must remove the third-party ClamAV installation or the cPanel-provided ClamAV configuration.
Workaround
- Access the server's command line as the 'root' user via SSH or "Terminal" in WHM.
- Run the following command for the desired option.
- Remove the third-party ClamAV installation.
RHEL-based 8+
dnf remove clamav* -y
Ubuntu
apt remove clamav* -y
Remove the cPanel-provided ClamAV configuration.
/usr/local/cpanel/scripts/update_local_rpm_versions --del target_settings.clamav
- Remove the third-party ClamAV installation.
Comments
0 comments
Article is closed for comments.