遇到报错[Cannot retrieve repository metadata (repomd.xml) for repository: salt-latest. Please verify its path and try again]
今天在centos6上用yum安装docker的时候遇到报错
[root@linux4Tester ~]# yum install docker
已加载插件:fastestmirror, security
设置安装进程
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
http://mirrors.ustc.edu.cn/salt/yum/redhat/6/x86_64/latest/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
尝试其他镜像。
To address this issue please refer to the below wiki article
https://wiki.centos.org/yum-errors
If above article doesn't help to resolve this issue please use https://bugs.centos.org/.
错误:Cannot retrieve repository metadata (repomd.xml) for repository: salt-latest. Please verify its path and try again
解决办法:
cd到 /etc/yum.repos.d/目录下
找到salt-latest相关的repo文件(哪个报错就找哪个)
修改 salt-latest.repo中的enabled=1为enabled=0