分享模板插件精品好资源
现在位置:首页 > 随便写写 > 阿里云centos系统yum源错误解决方法

阿里云centos系统yum源错误解决方法

作者:蓝叶 分类:随便写写 时间:2021-01-27 浏览:12337

阿里云ESC云主机centos系统yum更新时,会遇到类似如下404等错误:
http://mirrors.aliyun.com/centos/6/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found" Trying other mirror.
http://mirrors.aliyuncs.com/centos/6/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 7 - "couldn't connect to host" Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
蓝叶经过研究发现阿里云的yum源好多都不完善,才会出现以上错误导致yum源无法更新,解决方法只需要按照以下步骤修改文件就可以解决阿里云centos系统yum源错误,如果懂命令就登陆ssh使用命令修改,如果是新手可以使用winscp登陆后下载/etc/yum.repos.d/目录下的CentOS-Base.repoepel.repo文件进行修改。

阿里云centos系统yum源错误解决方法.png

把CentOS-Base.repo文件中的以下网址
http://mirrors.aliyun.com/centos/
http://mirrors.aliyuncs.com/centos/
http://mirrors.cloud.aliyuncs.com/centos/
修改成
http://mirrors.aliyun.com/centos-vault/centos/

把epel.repo文件中的
enabled=1修改enabled=0

免责声明:

本页网址:点击复制分享给朋友吧!

本站分享的一切内容资源如若没有备注,均为蓝叶原创,如需转载请注明出处;如有侵权请与我们联系处理。敬请谅解!

评论列表
挤眼亲亲咆哮开心想想可怜糗大了委屈哈哈小声点右哼哼左哼哼疑问坏笑赚钱啦悲伤耍酷勾引厉害握手耶嘻嘻害羞鼓掌馋嘴抓狂抱抱围观威武给力
提交评论

清空信息
关闭评论