yum下载软件失败:‘Could not resolve host: mirrorlist .centos .org; Unknowm error

Loaded plugins: fastestmirror, ovl

Determining fastest mirrors

Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7\&arch=x86_64\&repo=os\&infra=container error was

14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error"

解决办法:

bash 复制代码
vi  /etc/yum/pluginconf.d/fastestmirror.conf  
plugins=0
vi /etc/yum.conf
enabled=0
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
yum clean all
yum update 
相关推荐
深耕AI3 分钟前
【完整教程】宝塔面板FTP配置与FileZilla连接服务器
运维·服务器
serve the people12 分钟前
Prompts for Chat Models in LangChain
java·linux·langchain
李昊哲小课38 分钟前
Ubuntu 24.04 MariaDB 完整安装与配置文档
linux·ubuntu·mariadb
AI智域边界 - Alvin Cho2 小时前
Bloomberg、LSEG 与 MCP 缺口:为什么尚未发布完整的 MCP 服务器,以及多智能体系统如何解決这问题
运维·服务器
人间打气筒(Ada)2 小时前
zerotier内网穿透部署(rockylinux部署本地服务器)超详细~~~
linux·内网穿透·内网·公网·zerotier·穿透
Elias不吃糖3 小时前
Git常用指令合集
linux·git
_OP_CHEN3 小时前
Linux网络编程:(七)Vim 编辑器完全指南:从入门到精通的全方位实战教程
linux·运维·服务器·编辑器·vim·linux生态·linux软件
Maple_land3 小时前
第1篇:Linux工具复盘上篇:yum与vim
linux·运维·服务器·c++·centos
shizhan_cloud3 小时前
Linux 硬盘分区管理
linux·运维
蓁蓁啊4 小时前
Ubuntu 虚拟机文件传输到 Windows的一种好玩的办法
linux·运维·windows·单片机·ubuntu