Centos8 Could not resolve host: mirrors.cloud.aliyuncs.com

编程入门 行业动态 更新时间:2024-10-24 14:27:53

Centos8 Could not resolve <a href=https://www.elefans.com/category/jswz/34/1768974.html style=host: mirrors.cloud.aliyuncs.com"/>

Centos8 Could not resolve host: mirrors.cloud.aliyuncs.com

当centos8出现一下问题时:

原因如下:

2021年12月31日CentOS 8 EOL。按照社区规则,CentOS 8的源地址/内容已移除,目前第三方的镜像站中均已移除CentOS 8的源。阿里云的源://mirrors.aliyun也无法同步到CentOS 8的源

原文链接:

CentOS 8 EOL如何切换源? - 云服务器 ECS - 阿里云.html?spm=5176.smartservice_service_chat.0.0.712c3f1bBoZ19I

运行一下命令:

一:

wget .5.2111.repo -O /etc/yum.repos.d/Centos-vault-8.5.2111.repo

wget .repo -O /etc/yum.repos.d/epel-archive-8.repo

二:

sed -i 's/mirrors.cloud.aliyuncs/url_tmp/g' /etc/yum.repos.d/Centos-vault-8.5.2111.repo && sed -i 's/mirrors.aliyun/mirrors.cloud.aliyuncs/g' /etc/yum.repos.d/Centos-vault-8.5.2111.repo && sed -i 's/url_tmp/mirrors.aliyun/g' /etc/yum.repos.d/Centos-vault-8.5.2111.repo sed -i 's/mirrors.aliyun/mirrors.cloud.aliyuncs/g' /etc/yum.repos.d/epel-archive-8.repo

三:

执行 yum clean all && yum makecache

如果没有wget命令,下载这个repo文件,然后将/etc/yum.repos.d/CentOS-Base.repo 备份,移走,将最新的放上去

执行 yum clean all && yum makecache

://download.csdn/download/liudongyang123/81887541

更多推荐

Centos8 Could not resolve host: mirrors.cloud.aliyuncs.com

本文发布于:2024-03-04 00:04:05,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1707729.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:host   resolve   aliyuncs   cloud   mirrors

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!