无法解析主机:mirrorlist.centos.org Centos 7

从 2024 年 7 月 1 日起,在 CentOS 7 上,请切换到 Vault 存档存储库:

XML 复制代码
vi /etc/yum.repos.d/CentOS-Base.repo

复制/粘贴以下内容并注意您的操作系统版本。如果需要,请更改。此配置中的版本为 7.9.2009:

XML 复制代码
[base]
name=CentOS-$releasever - Base
baseurl=http://vault.centos.org/7.9.2009/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

[updates]
name=CentOS-$releasever - Updates
baseurl=http://vault.centos.org/7.9.2009/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

[extras]
name=CentOS-$releasever - Extras
baseurl=http://vault.centos.org/7.9.2009/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

[centosplus]
name=CentOS-$releasever - Plus
baseurl=http://vault.centos.org/7.9.2009/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

如果需要,请执行以下操作:

Erlang 复制代码
yum clean all
相关推荐
数通Dinner几秒前
异步Websocket构建聊天室
运维·网络·websocket·网络协议·信息与通信
云动雨颤31 分钟前
Python 自动化办公神器|一键转换所有文档为 PDF
运维·python
Fanmeang41 分钟前
OSPF高级特性之FRR
运维·网络·华为·ip·ospf·spf·frr
小张不嚣张꒰ঌ(˚ᆺ˚)໒꒱41 分钟前
Centos7在yum当中遇到Could not resolve host: mirrorlist.centos.org解决方案
linux·运维·服务器·centos
Sally璐璐43 分钟前
CentOS企业级文件服务器终极部署指南
linux·服务器·centos
岁月玲珑43 分钟前
【如何判断Linux系统是Ubuntu还是CentOS】
linux·ubuntu·centos
梅孔立44 分钟前
yum update 报错 Cannot find a valid baseurl for repo: centos-sclo-rh/x86_64 等解决办法
linux·python·centos
ldj202044 分钟前
Centos 安装Jenkins
java·linux
Sca_杰1 小时前
centos指令
linux·运维·centos
几道之旅1 小时前
centos 7 安装NVIDIA Container Toolkit
linux·运维·centos