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/

相关推荐
xy123066 小时前
OpenStack Train 部署实战(三)控制节点--keystone服务
centos·openstack
欧云服务器4 天前
怎么让脚本命令可以同时在centos、debian、ubuntu执行?
ubuntu·centos·debian
xiaoliuliu123454 天前
CentOS 7 安装 gcc-4.8.5-44.el7.x86_64.rpm 详细步骤(含依赖解决)
linux·运维·centos
txzz88884 天前
CentOS-Stream-10 Secure Shell服务器sshd_config配置文件
linux·centos·sshd_config·ssh配置
txzz88884 天前
CentOS-Stream-10 Secure Shell服务器
linux·centos·ssh·secure shell·ssh服务器
文静小土豆5 天前
CentOS 7 OpenSSH 10.2p1 升级全攻略(含离线安装与回退方案)
linux·运维·centos·ssh
xianyudx5 天前
Linux 服务器 DNS 配置指南 (CentOS 7 / 麒麟 V10)
linux·服务器·centos
文静小土豆5 天前
CentOS 7 升级 OpenSSL 3.5.4 详细指南
linux·运维·centos·ssl
林姜泽樾5 天前
centOS改中文输入法教程
linux·运维·服务器·centos
CN-David6 天前
CentOS搭建Mycat中间件
linux·mysql·中间件·centos·mariadb