Loading

yum update 正在尝试其他镜像解决办法

解决方法:

需要配置yum源,改为国内的就可以了

(1)备份原有的镜像文件

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

(2)下载阿里云的镜像

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

(3)生成新镜像缓存

yum clean all
yum makecache

 

posted @ 2020-10-27 21:59  头牌彭鱼宴、  阅读(2673)  评论(0编辑  收藏  举报