CentOS7 执行yum 命令出错 One of the configured repositories 如何解决

温馨提示:文章已超过2179天没有更新,可能存在链接失效,相关教程仅供参考

新安装的一台物理服务器, 执行yum命令出现了错误, One of the configured repositories failed (Unknown),, 最后是Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again 。完整的错误信息是

# yum update 
Loaded plugins: fastestmirror  base

这里重点是最后一行 for repository: epel/x86_64. 说明是这个仓储出了问题。

解决办法1 删除这个仓库

# rm -f  /etc/yum.repos.d/epel.repo

这样执行yum命令就可以正确的执行。


© 除非注明,否则均为阿豪运维笔记原创文章,转载或复制请以超链接形式并注明出处

取消
微信二维码
微信二维码
支付宝二维码