yupingyong

新服务器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 保存变更内容就可以正常安装了

分类:

技术点:

相关文章:

  • 2021-08-10
  • 2021-07-23
  • 2021-12-03
  • 2021-07-30
  • 2021-06-13
  • 2021-07-28
  • 2021-07-07
猜你喜欢
  • 2021-11-13
  • 2021-11-13
  • 2021-10-07
  • 2021-05-09
  • 2021-04-16
  • 2021-11-20
  • 2021-11-23
相关资源
相似解决方案