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 
相关推荐
Johny_Zhao6 小时前
Keepalived与Nginx架构选型
linux·nginx·信息安全·云计算·apache·shell·yum源·keepalive·系统运维
FlightYe9 小时前
linux系统编程(二十一):C 语言常见坑
android·linux·运维·服务器·c语言·音视频
by209999 小时前
Linux 文件描述符与重定向
linux·服务器
橙橙笔记10 小时前
Linux基础与命令的学习
linux·运维·服务器·shell
无奈笑天下10 小时前
银河麒麟桌面操作系统【命令行配置文件与图片搜索功能】操作方法
linux·运维·服务器
飞花漫卷,情随岁迁11 小时前
网络数据包转发与内核机制:小白概念科普
linux·运维·网络·数据库·mysql·oracle·智能路由器
.道阻且长.12 小时前
Linux基础IO:理解文件以及回顾C文件接口
linux·运维·服务器·c语言·开发语言·职场和发展
学以智用13 小时前
CentOS 目录穿梭
linux
goehou14 小时前
改错一行 fstab,SSH 就再也连不上了
linux·运维·故障恢复·fstab
贝锐16 小时前
远程运维如何实现网页触达:制造企业引入向日葵SDK重构机床运维实战
运维·sdk·web