Issue
When trying to run dnf update or yum update when installing from ISO, 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
Environment
- CloudLinux OS 8
- Installation from ISO
Solution
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
2. Run yum update.
Cause
CloudLinux OS 8 images may contain obsolete data that was obtained or created without the license being fully activated. Clearing out the yum cache and ensuring the license is updated will resolve the issue.
Useful links
Comments
0 comments
Please sign in to leave a comment.