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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值