Symptoms
When running updates or attempting to install a new package, you encounter an error similar to the following.
Error: Failed to download metadata for repo 'cloudlinux-x86_64-server-9': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Description
The error occurs when the configured repository is unreachable. Adding an additional mirror list can address this.
Workaround
- Access the server's command line as the 'root' user via SSH or "Terminal" in WHM.
- Run the following commands.
echo https://xmlrpc.cln.cloudlinux.com/XMLRPC >> /etc/mirrorlist
echo mirrorURL=file:///etc/mirrorlist >> /etc/sysconfig/rhn/up2date
dnf clean all
dnf makecache
Comments
0 comments
Article is closed for comments.