centos7更换yum 163源时出错

clipboard.png

clipboard.png

centos7更换yum 163源时出错,请大牛指点!

阅读 6.4k
3 个回答

试试阿里云
CentOS

1、备份

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

2、下载新的CentOS-Base.repo 到/etc/yum.repos.d/

CentOS 5

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo
CentOS 6

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
CentOS 7

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
3、之后运行yum makecache生成缓存

http://mirrors.aliyun.com/help/centos

新手上路,请多包涵

搜了一晚上,搜到这里来了。我觉得就是换的源不能用,被限制了。默认的源是华为的,非常慢,甚至到了几K。无奈吧