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(数字部门可能不一样)这个文件,如下图所示

centos could not retrieve mirrorlist
 

把 onboot 改成yes,如下图
centos could not retrieve mirrorlist
 

 

然后重启网络
centos could not retrieve mirrorlist
 

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

 

yum -y install wget

centos could not retrieve mirrorlist
 

 

 

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

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

http://fanshuyao.iteye.com/

相关文章:

  • 2021-05-30
  • 2022-12-23
  • 2021-11-12
  • 2021-08-08
  • 2022-12-23
  • 2021-09-13
  • 2021-11-25
猜你喜欢
  • 2022-01-06
  • 2021-10-19
  • 2022-02-17
  • 2021-11-03
  • 2021-09-19
  • 2021-05-02
  • 2022-12-23
相关资源
相似解决方案