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/

相关推荐
dvjr cloi1 天前
Linux(CentOS)安装 MySQL
linux·mysql·centos
何中应2 天前
CentOS 7安装、卸载MySQL数据库(二)
数据库·mysql·centos
idolao3 天前
CentOS 7 安装 jakarta-tomcat-connectors-jk2-src-current.tar.gz 详细步骤(解压、编译、配置)
linux·centos·tomcat
HABuo3 天前
【linux(四)】套接字编程--基于UDP协议的客户端服务端
linux·服务器·c++·网络协议·ubuntu·udp·centos
fred_kang4 天前
firewalld 防火墙操作手册
centos
__beginner__4 天前
CentOS 磁盘占用异常排查与处理手册(df 高、du/ncdu 低)
linux·运维·centos
tianyuanwo4 天前
CentOS 7 使用 CentOS 8 YUM 源报错 “Invalid version flag: if” 深度解析
python·centos·yum
乌托邦的逃亡者5 天前
CentOS/Openeuler主机中,为一个网卡设置多个IP地址
linux·运维·网络·tcp/ip·centos
杨云龙UP5 天前
Oracle数据库启动失败:ORA-29701、ORA-01565、ORA-17503故障处理记录_20260429
linux·运维·数据库·oracle·centos
IT WorryFree5 天前
FGT-KVM 完整部署极简教程(CentOS 7 + KVM 环境)
linux·运维·centos