centos could not retrieve mirrorlist

前端之家收集整理的这篇文章主要介绍了centos could not retrieve mirrorlist前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

centos could not retrieve mirrorlist

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.

蕃薯耀 2016年6月1日 11:57:56 星期三

http://fanshuyao.iteye.com/

一、问题描述

安装了CentOS-7-x86_64-Minimal-1511.iso后,使用命令

yum install net-tools 或 yum -y install wget

提示could not retrieve mirrorlist

网上找了很多原因都说需要配置/etc/resolv.conf文件,在文件加上

nameserver 8.8.8.8

但都没有用。

二、解决方法

是进入到/etc/sysconfig/network-script/

修改ifcfg-eno16777736(数字部门可能不一样)这个文件,如下图所示


把 onboot 改成yes,如下图

然后重启网络

再执行命令就可以安装了。

yum -y install wget


>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.

蕃薯耀 2016年6月1日 11:57:56 星期三

http://fanshuyao.iteye.com/

原文链接:https://www.f2er.com/centos/382181.html

猜你在找的CentOS相关文章