yum源失效了
阿里云上yum源失效,上网一查才知道,CentOS 6已经停止更新支持,同时官方也把yum源删除了

Vault源
更换yum源为CentOS的Vault源
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo-backup
wget -O /etc/yum.repos.d/CentOS-Base.repo http://file.kangle.odata.cc/repo/Centos-6.repo
wget -O /etc/yum.repos.d/epel.repo http://file.kangle.odata.cc/repo/epel-6.repo
yum clean all
yum makecache
这些命令执行完毕,yum源就已经被替换了。
注意: 这里换的是Centos6的源,可千万别搞错了。

CentOS 6由于已停止支持,官方yum源失效。本文介绍如何将失效的yum源替换为CentOS Vault源的方法,包括修改配置文件及下载新的源配置。
5327





