Issue
Imunify360 installation failed on EOL CentOS 8.5.2111 due to the errors with main repositories:
Error: Failed to download metadata for repo 'BaseOS': Cannot download repomd.xml:
Cannot download repodata/repomd.xml: All mirrors were tried
Error: Failed to download metadata for repo 'AppStream': Cannot download repomd.xml:
Cannot download repodata/repomd.xml: All mirrors were tried
Or with a message about problems with dependencies related to packages that are part of one of the main repositories (tmpwatch as example here):
nothing provides /usr/bin/tmpwatch needed by imunify360-firewall
Environment
- Imunify360
- CentOS 8.5.2111 EOL
- Any supported panel
Solution
This topic goes beyond questions about Imunify360, but it's worth looking into and considering migrating to CloudLinux or AlmaLinux from an already unsupported OS. Both systems support the installation of Imunify360 and will allow working with a supported, current version of the operating system.
However, if there is an urgent need to restore the repositories, this can be done by switching the system to Vault:
1. Corrected the baseurl= in the two repo files to the following:
# cat /etc/yum.repos.d/CentOS-Linux-AppStream.repo | grep vault
baseurl=https://vault.centos.org/8.5.2111/AppStream/$basearch/os/
# cat /etc/yum.repos.d/CentOS-Linux-BaseOS.repo | grep vault
baseurl=https://vault.centos.org/8.5.2111/BaseOS/$basearch/os/
2. Clear the cache and try to install the package included in the main repositories and the required Imunify360:
# dnf clean all
# dnf install tmpwatch
Cause
CentOS Linux 8 (2111) is the final release and it is not supported since December 31, 2021. That's why main repositories are not available.
Comments
0 comments
Please sign in to leave a comment.