更换阿里云CentOS源步骤:
- 先删除 /etc/yum.repos.d下的所有文件
- 重新更新Base源
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo
yum clean all
yum makecache #生成缓存