Cenos 8 不能从镜像仓库下载metadata

错误信息如下:
Error: Failed to download metadata for repo ‘mirrors.aliyun.com_docker-’: Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

下面的路径多了个mirrors.aliyun.com_docker-.repo文件,删了就好了,真是害死人,找了两个晚上才搜到原因

cd /etc/yum.repos.d
rm mirrors.aliyun.com_docker-.repo

原博主:
https://blog.csdn.net/wujize/article/details/106842230

你可能感兴趣的:(遇到的坑,centos)