解决阿里云centos6 无法更新yum的办法
由于业务需求使用centos6 在阿里云机器已经不支持centos6的 yum
更新提示出现 http://mirrors.cloud.aliyuncs.com/epel/6/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
解决办法
- 1 cd /etc/yum.repos.d
- 2、vim epel.repo
- enabled=1改为enabled=0
然后再修改 Centos-Base-repo的记录为官方仓库
执行
yum clean all
yum makecache