Issue
Server updates fail when dnf update tries to download metadata for the imunify360-alt-php repository.
The error may look as follows:
Errors during downloading metadata for repository 'imunify360-alt-php':
- Status code: 401 for https://repo.alt.cloudlinux.com/el/.../alt-php/$releasever/updates/$basearch/repodata/repomd.xml
Error: Failed to download metadata for repo 'imunify360-alt-php': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were triedor:
cannot update repo 'imunify360-alt-php': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried; Last error: Status code: 401The issue can occur even when the Imunify360 license status is valid:
imunify360-agent rstatus
OKEnvironment
- Imunify360
- HardenedPHP
-
imunify360-alt-phprepository - EL9/EL10-based systems, including AlmaLinux 9/10 or CloudLinux 10
-
dnf/yumpackage updates
Solution
Re-register the Imunify360 license and refresh the package metadata.
- Unregister the current Imunify360 license:
imunify360-agent unregister- Register the server again with the valid activation key:
imunify360-agent register YOUR_KEY- Clean the package manager cache:
yum clean all- Retry the update or repository access:
yum updateFor systems using dnf, run:
dnf updateAlternative temporary workaround
Use this workaround only if HardenedPHP is not installed or is not currently required. If HardenedPHP is actively used, disabling this repository may prevent HardenedPHP packages from receiving updates while the repository remains disabled.
- Edit the repository file:
/etc/yum.repos.d/imunify360-alt-php.repo- Change:
enabled=1to:
enabled=0- Clean the metadata cache and retry the update:
dnf clean all
dnf makecache
dnf update- Re-enable the repository after the issue is resolved:
enabled=1
Comments
0 comments
Please sign in to leave a comment.