Centos6手动编辑源地址
1.备份原来的源
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
2.创建源文件
vim /etc/yum.repos.d/CentOS-Base.repo
[base]
name=CentOS-6.9 - Base - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.sohu.com/centos/6.10/os/x86_64/
gpgcheck=0
3.清除缓存
yum clean all
4.重新建立缓存
yum makecache
5.更新
yum update