Cannot find a valid baseurl for repo: centos-sclo-rh/x86_64

Centos已经停止维护了

bash 复制代码
#yum makecache
Could not retrieve mirrorlist http://mirrorlist.centos.org?arch=x86_64&release=7&repo=sclo-rh error was
14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error"
Cannot find a valid baseurl for repo: centos-sclo-rh/x86_64
bash 复制代码
#解决办法
cd /etc/yum.repos.d
cp CentOS-SCLo-scl-rh.repo CentOS-SCLo-scl-rh.repo.bak
sed -i s/#baseurl/baseurl/ CentOS-SCLo-scl-rh.repo
sed -i s/mirrorlist.centos.org/mirrors.aliyun.com/ CentOS-SCLo-scl-rh.repo
sed -i s/mirror.centos.org/mirrors.aliyun.com/ CentOS-SCLo-scl-rh.repo

cp CentOS-SCLo-scl.repo CentOS-SCLo-scl.repo.bak
sed -i s/#baseurl/baseurl/ CentOS-SCLo-scl.repo
sed -i 's/# baseurl/baseurl/' CentOS-SCLo-scl.repo
sed -i s/mirrorlist.centos.org/mirrors.aliyun.com/ CentOS-SCLo-scl.repo
sed -i s/mirror.centos.org/mirrors.aliyun.com/ CentOS-SCLo-scl.repo

sed -i -e '/mirrors.cloud.aliyuncs.com/d' -e '/mirrors.aliyuncs.com/d' CentOS-Base.repo
yum clean all
yum makecache

https://dev.to/franzwong/fix-cannot-find-a-valid-baseurl-for-repo-in-centos-1h07

https://developer.aliyun.com/mirror/centos/

相关推荐
hashiqimiya11 小时前
centos配置环境变量jdk
linux·运维·centos
百锦再11 小时前
[特殊字符] Python在CentOS系统执行深度指南
开发语言·python·plotly·django·centos·virtualenv·pygame
半梦半醒*1 天前
正则表达式
linux·运维·开发语言·正则表达式·centos·运维开发
SonOfWind03111 天前
CentOS搭建本地源
linux·运维·centos
过尽漉雪千山1 天前
Flink1.17.0集群的搭建
java·大数据·linux·flink·centos
二进制_博客2 天前
给CentOS的虚拟机扩容
linux·运维·centos
张3蜂2 天前
MongoDB BI Connector 详细介绍与使用指南(手动安装方式,CentOS 7 + MongoDB 5.0.5)
数据库·mongodb·centos
黎相思2 天前
MySQL在Centos 7环境下安装
数据库·mysql·centos
佛天华3 天前
centos 时间校准
linux·运维·centos
优秀的老黄3 天前
Docker部署RabbitMQ
linux·运维·docker·中间件·容器·centos·rabbitmq