首先备份/etc/yum.repos.d/CentOS-Base.repo
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
下载对应版本repo文件, 放入/etc/yum.repos.d/(操作前请做好相应备份)
http://www.centoscn.com/tool/CentOS5-Base-163.repo
http://www.centoscn.com/tool/CentOS6-Base-163.repo
以上二个源可以在ssh里用wget命令下载.