How can I fix the error: The [imunify360] repository is installed but do not have an [exclude] line that excludes conflicting packages?

Overview

The Warden extension requires ClamAV packages from the EPEL repository. If a conflicting third-party repository, such as Imunify360, is installed without an exclusion rule for ClamAV packages, the installer will fail due to package conflicts. This article provides instructions on how to resolve this error by configuring the appropriate repository exclusions.

Prerequisites

  • Root or sudo access to the server
  • A command-line text editor (e.g., vi, nano)

Resolution Steps

  1. Identify the correct repository configuration file based on your server environment:
    • Standard installations: /etc/yum.repos.d/imunify360.repo
    • CloudLinux servers: /etc/yum.repos.d/cloudlinux-imunify360.repo
  2. Open the identified file using a text editor.
  3. Locate the [imunify360] section within the configuration file.
  4. Append the following line to the end of this section: exclude=clam*
  5. Save and close the file.
  6. Re-run the Warden extension installer. The installation process should now complete successfully.

Configuration Example

The following examples demonstrate the repository configuration before and after applying the required exclusion rule.

Before:

[imunify360]
name=EL-7 - Imunify360
baseurl=https://repo.imunify360.cloudlinux.com/defense360//el/7/updates/x86_64/
username=defense360
password=nraW!F@$x4Xd6HHQ
enabled=1
gpgcheck=1
gpgkey=https://repo.imunify360.cloudlinux.com/defense360//RPM-GPG-KEY-CloudLinux

After:

[imunify360]
name=EL-7 - Imunify360
baseurl=https://repo.imunify360.cloudlinux.com/defense360//el/7/updates/x86_64/
username=defense360
password=nraW!F@$x4Xd6HHQ
enabled=1
gpgcheck=1
gpgkey=https://repo.imunify360.cloudlinux.com/defense360//RPM-GPG-KEY-CloudLinux
exclude=clam*

Troubleshooting

  • If the installer continues to fail, verify that the exclude=clam* directive was added directly under the [imunify360] section and not within a different repository block.
  • Ensure there are no trailing spaces or syntax errors in the .repo file, as malformed configuration files can cause YUM to reject the changes.
  • If package metadata conflicts persist, clear the local cache by running yum clean all before retrying the installation.
  • imunify360, atomic, repo, repository
  • 1 Pengguna Menemukan Ini Berguna
Apakah jawaban ini membantu?

Artikel Terkait

The maldet real-time monitoring daemon will not start. How can I fix this?

1. Try killing the process using maldet directly: maldet --kill-monitor systemctl restart...

How can I fix the error: Host '127.0.0.1' is not allowed to connect to this MariaDB server?

Overview This article provides resolution steps for the MariaDB connection error Host...

How can I fix the error: Parse error at /etc/clamav/clamd.conf Unknown option ScanImage?

Overview The clamav-daemon.service may fail to start due to unrecognized configuration...

How can I fix the error: The domain limit of this license key has been reached?

Overview The Admin and Pro editions of Danami products enforce a maximum domain limit within the...

How can I fix the error: The domain limit of this license key has been reached?

Overview The Admin and Pro editions of Danami products enforce a maximum domain limit within the...