yum update 正在尝试其他镜像解决办法
时间:2020-10-27 23:07:28
收藏:0
阅读:225
解决方法:
需要配置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
原文:https://www.cnblogs.com/aze999/p/13887904.html
评论(0)