May 13, 2024
When updating using yum update -y
or dnf update
, it returns the following error:
Error: Failed to download metadata for repo 'cloudlinux-x86_64-server-8':
Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
/usr/sbin/rhn_check
/usr/bin/cldetect --update-license
/usr/bin/yum clean all
/usr/bin/yum makecache
yum update
or dnf update
dnf clean all && rm -r /var/cache/dnf && dnf upgrade -y && dnf update -y