以超級用戶登路
先關閉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名就可以了。