当前位置:首页 » 《休闲阅读》 » 正文

yum切换源,解决Cannot find a valid baseurl for repo: centos-sclo-rh/x86_64错误

11 人参与  2024年10月20日 11:20  分类 : 《休闲阅读》  评论

点击全文阅读


参考    [已解决] yum makecache报错:Cannot find a valid baseurl for repo: centos-sclo-rh/x86_64-CSDN博客icon-default.png?t=O83Ahttps://blog.csdn.net/2302_77114273/article/details/142769901命令行  sudo nano /etc/yum.repos.d/CentOS-Base.repo
将里边的内容替换为
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the 
# remarked out baseurl= line instead.
#
#
 
[base]
name=CentOS-$releasever - Base - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos/$releasever/os/$basearch/
        http://mirrors.aliyuncs.com/centos/$releasever/os/$basearch/
        http://mirrors.cloud.aliyuncs.com/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7
 
#released updates 
[updates]
name=CentOS-$releasever - Updates - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos/$releasever/updates/$basearch/
        http://mirrors.aliyuncs.com/centos/$releasever/updates/$basearch/
        http://mirrors.cloud.aliyuncs.com/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7
 
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos/$releasever/extras/$basearch/
        http://mirrors.aliyuncs.com/centos/$releasever/extras/$basearch/
        http://mirrors.cloud.aliyuncs.com/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7
 
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos/$releasever/centosplus/$basearch/
        http://mirrors.aliyuncs.com/centos/$releasever/centosplus/$basearch/
        http://mirrors.cloud.aliyuncs.com/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7
 
#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos/$releasever/contrib/$basearch/
        http://mirrors.aliyuncs.com/centos/$releasever/contrib/$basearch/
        http://mirrors.cloud.aliyuncs.com/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7
 
[centos-sclo-rh]
name=CentOS-7 - SCLo rh
baseurl=http://vault.centos.org/centos/7/sclo/$basearch/rh/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo
 
[centos-sclo-sclo]
name=CentOS-6.10 - SCLo sclo
baseurl=http://vault.centos.org/centos/7/sclo/$basearch/sclo/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo


点击全文阅读


本文链接:http://m.zhangshiyu.com/post/174482.html

<< 上一篇 下一篇 >>

  • 评论(0)
  • 赞助本站

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

最新文章

  • 鹿闻笙沈卿尘小说(鹿闻笙沈卿尘)+前传(鹿闻笙沈卿尘)阅读
  • 宋书砚宋南姝(春色寄南姝)TXT无套路在线+无广告结局
  • 为了一斤粮食,女儿被童养夫贱卖小众冷门_林娇柳絮林府内容精选_小说后续在线阅读_无删减免费完结_
  • 奶奶的日记小众冷门_奶奶月月宋长富热门榜首_小说后续在线阅读_无删减免费完结_
  • 越沧溟奚凝:结局+番外(浅冬薄念情丝缠)全文免费阅读无弹窗大结局_浅冬薄念情丝缠:结局+番外(浅冬薄念情丝缠)最新章节列表_笔趣阁浅冬薄念情丝缠
  • 重回八零恋爱脑治好了小说(艾子君谢思齐)结局+番外抖音新书_重回八零恋爱脑治好了小说免费阅读最新章节列表笔趣阁(艾子君谢思齐)
  • 情字何解后续_阙矜温柔冷笑前言+后续_小说后续在线阅读_无删减免费完结_
  • 婆婆总爱要我听到她的心声精心打造_婆婆老公明白晋江金榜_小说后续在线阅读_无删减免费完结_
  • 凤夭夭(听我心声后,炮灰一家集体虐渣)完整版小说阅读_听我心声后,炮灰一家集体虐渣凤夭夭全文免费阅读
  • (裴玉梁靖森)听雪灼烧:结局+番外精品选集起点章节+阅读即将发布预订
  • 听了***悄悄话,所有人都让我去死番茄热门_妹妹明白掌上明珠小编推荐_小说后续在线阅读_无删减免费完结_
  • 与婳燕尔:完结+结局+番外(与婳燕尔云婳司珩:完结+结局+番外)

    关于我们 | 我要投稿 | 免责申明

    Copyright © 2020-2022 ZhangShiYu.com Rights Reserved.豫ICP备2022013469号-1