一、AliyunECS服务器在安装docker服务时一直出现:错误:为仓库 ‘root_n’ 下载元数据失败
[root@MyAliyun yum.repos.d]# sudo yum install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
Docker CE Stable - x86_64 183 kB/s | 3.5 kB 00:00
created by dnf config-manager from file:///root/\n 0.0 B/s | 0 B 00:00
Errors during downloading metadata for repository 'root_n':
- Curl error (37): Couldn't read a file:// file for file:///root/\n/repodata/repomd.xml [Couldn't open file /root/\n/repodata/repomd.xml]
错误:为仓库 'root_n' 下载元数据失败 : Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
解决办法文章来源:https://www.toymoban.com/news/detail-801547.html
vi /etc/yum.repos.d/root_n.repo
[root_n]
name=created by dnf config-manager from file:///root/\n
baseurl=file:///root/\n
enabled=1
将 enabled=1 修改为 enabled=0 保存变更内容就可以正常安装了文章来源地址https://www.toymoban.com/news/detail-801547.html
endl
到了这里,关于AliyunECS服务器在安装docker服务时一直出现:错误:为仓库 ‘root_n‘ 下载元数据失败的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!