内核升级在线安装报错:Could not retrieve mirrorlist http://mirrors.elrepo.org/mirrors-elrepo-kernel.el7 error was14: curl#6 - "Could not resolve host: mirrors.elrepo.org; 未知的错误"

 

内核升级在线安装报错:Could not retrieve mirrorlist http://mirrors.elrepo.org/mirrors-elrepo-kernel.el7 error was14: curl#6 -

修改网卡配置

[root@localhost ~]# vim /etc/sysconfig/network-scripts/ifcfg-ens32

内核升级在线安装报错:Could not retrieve mirrorlist http://mirrors.elrepo.org/mirrors-elrepo-kernel.el7 error was14: curl#6 -

BOOTPROTO="none"  需要设置为"static"

修改DNS配置

[root@localhost ~]# vim  /etc/resolv.conf

加入

nameserver 223.5.5.5

nameserver 223.6.6.6

[root@localhost ~]# cat /etc/resolv.conf //验证是否生效

内核升级在线安装报错:Could not retrieve mirrorlist http://mirrors.elrepo.org/mirrors-elrepo-kernel.el7 error was14: curl#6 -

再次运行

[root@localhost ~]# yum --disablerepo="*" --enablerepo="elrepo-kernel" list available

可以执行了

 

你可能感兴趣的:(内核升级在线安装报错:Could not retrieve mirrorlist http://mirrors.elrepo.org/mirrors-elrepo-kernel.el7 error was14: curl#6 - "Could not resolve host: mirrors.elrepo.org; 未知的错误")