问题:centos系统yum安装软件时报错:
Determining fastest mirrors Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=genclo error was 14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error"
通过更换yum源得以解决
备份当前yum源
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
下载新的CentOS-Base.repo 到/etc/yum.repos.d/
curl
-
o
/
etc
/
yum.repos.d
/
CentOS
-
Base.repo http:
/
/
mirrors.aliyun.com
/
repo
/
Centos
-
7.repo