The new server Centos 8.4 keeps prompting this error while installing the docker service:
yum update -y
created by dnf config-manager from file:///root/ 0.0 B/s | 0 B 00:00
Errors during downloading metadata for repository 'root_':
- Curl error (37): Couldn't read a file:// file for file:///root/repodata/repomd.xml [Couldn't open file /root/repodata/repomd.xml]
Error: Failed to download metadata for repo'root_': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
After searching for a long time, I finally found a solution:
root_.repo
in the /etc/yum.repos.d
directory after openingenabled=1
to enabled=0