centos8.4系统安装docker服务出现[错误:为 repo 'root_' 下载元数据失败]的问题解决方案
新服务器Centos 8.4在安装docker服务时一直出现:
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] 错误:为 repo 'root_' 下载元数据失败 : Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
找了很久终于找到了解决方案:
找到 /etc/yum.repos.d 目录下的文件 root_.repo 打开后
将 enabled=1 修改为 enabled=0 保存变更内容就可以正常安装了