yum安装时候报错Repository epel is listed more than once in the configuration

出现问题的经过:
之前在配置docker的时候没配置好,所以出现了这个问题,用yum install xx 安装东西时候报以下错误日志:

Repository epel is listed more than once in the configuration
created by dnf config-manager from http://mirrors.aliyun.com/docker-                                                                                       5.9 kB/s | 2.5 kB     00:00    

Errors during downloading metadata for repository 'mirrors.aliyun.com_docker-':
 1. Status code: 404 for http://mirrors.aliyun.com/docker-/repodata/repomd.xml (IP: 27.128.214.226)
 
Error: Failed to download metadata for repo 'mirrors.aliyun.com_docker-': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
  1. cd /etc/yum.repos.d/
  2. ls (查看有没有报错信息中mirrors.aliyun.com_docker-相关的文件)
  3. rm mirrors.aliyun.com_docker-

参考链接:https://www.cnblogs.com/zkwarrior/p/13528734.html

/etc/yum.repos.d及repo文件解析
相关链接:
https://blog.csdn.net/yzpbright/article/details/81387623
https://blog.csdn.net/qq_39708763/article/details/103119942

你可能感兴趣的:(yum,yum)