CloudLinux Update issue: "Failed to download metadata for repo"

May 13, 2024

Issue

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

Solution 1

  1. Run the following commands to fix the repository issue:
/usr/sbin/rhn_check
/usr/bin/cldetect --update-license
/usr/bin/yum clean all
/usr/bin/yum makecache
  1. Run yum update or dnf update

Solution 2

  1. Run this command:
dnf clean all && rm -r /var/cache/dnf  && dnf upgrade -y && dnf update -y
Back to Top

Follow us on Twitter, Facebook or LinkedIn to receive updates regarding network issues, discounts and more.
2024 © JustAHost. All rights reserved.