以超级用户登路 

先关闭fastestmirror 

#“vi /etc/yum/pluginconf.d/fastestmirror.conf”     and set “enable=0″ 

#cd /etc/yum.repos.d/ 
#wget http://mirrors.163.com/.help/CentOS-Base-163.repo 
#wget http://mirrors.sohu.com/help/CentOS-Base-sohu.repo //sohu的源
#yum list 
查看一下是否成功。

此时会有如下提示:

Repository base is listed more than once in the configuration

Repository updates is listed more than once in the configuration

Repository addons is listed more than once in the configuration

Repository extras is listed more than once in the configuration

Repository centosplus is listed more than once in the configuration

Repository contrib is listed more than once in the configuration

解决方法:修改原来的CentOS-Base.repo名就可以了。