Linux CentOS各版本修改yum源报错及解决

报错1:执行 wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo 

  

报错2:执行 wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo  --no-check-certificate        ( --no-check-certificate 禁止权限校验 )

 

报错3:手动下载 https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo 文件,然后替换Linux里的 /etc/yum.repos.d/CentOS-Base.repo 文件,然后 执行 yum clean all && yum makecache   (重置yum缓存)

 

 

问题原因:CentOS 版本与阿里云的yum源版本不一致;如果版本一致的话,也会存在问题目前阿里云的yum源值维护第一个版本和最终版本,中间版本已停止维护且不支持yum源镜像使用;

阿里云CentOS各版本的yum源:https://mirrors.aliyun.com/centos/

 

 

解决方案:CentOS版本使用7、 7.9.2009、 8、 8.5.2111、 8-stream(推荐使用)

 

 

 

 

 

 

 

 

 

posted @ 2022-11-15 17:48  不良帅~  阅读(448)  评论(0编辑  收藏  举报