linux安装命令出错(could not resolve host mirrorlist.centos.org)

本次问题出现在虚拟机安装的centos7系统之后,使用yum命令安装wget命令(yum -y install wget),出现could not resolve host mirrorlist.centos.org,看到一篇文章回答的不错

首先看看虚拟机是否有网络连接,尝试ping一下本地ip,如果ping的时候直接出现network is unreachable,那么说明虚拟机网络配置有问题,

打开:/etc/resolv.conf文件,配置DNS:这里根据系统配置,有的是8.8.8.8,这里有可能有误,建议使用第二种方式(免得耽误时间)

如果还是不行,那么直接把虚拟机的配置网络移除,从新添加:

然后在安装后,显示正常了

原文地址:https://www.cnblogs.com/cunkouzh/p/9123453.html

时间: 2024-07-31 06:46:02

linux安装命令出错(could not resolve host mirrorlist.centos.org)的相关文章

【转】解决yum安装软件报Couldn't resolve host 'mirrorlist.centos.org问题

转自:http://blog.51cto.com/oldcat1981/1719825 今天在linux环境通过yum安装软件报了以下错误: [[email protected] yum.repos.d]# yum install ncurses devel -y Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile Could not retrieve mirrorlist http

[原]linux安装软件时提示找不到镜像的问题:Couldn't resolve host 'mirrorlist.centos.org'

问题:[[email protected] ~]# yum -y install gcc-*Loaded plugins: fastestmirror, prestoCould not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error was14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.cent

linux安装软件时提示找不到镜像的问题:Couldn't resolve host 'mirrorlist.centos.org'

问题:[[email protected] ~]# yum -y install gcc-*Loaded plugins: fastestmirror, prestoCould not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error was14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.cent

解决Couldn't resolve host 'mirrorlist.centos.org

这个错误引起主要是因为环境读取不到yun引起的可以考虑/etc/sysconfig/network-scripts/ifcfg-eth0 配置出错导致网络不通.或者/etc/resolv.conf的DNS配置出错.或者可以考虑清楚yum缓存影响(yum clean all) (下面是网上找到比较有用资料) 今天在linux环境通过yum安装软件报了以下错误: [[email protected] yum.repos.d]# yum install ncurses devel -y Loaded 

"Could not resolve host: mirrorlist.centos.org; Unknown error"解决方法

这两天学习历程可谓历尽坎坷,昨天在vSphere Client中安装完CentOS系统后,今天尝试在系统中安装mysql数据库. 由于刚接触Linux,所以对于一些常用指令和操作并不熟悉,也是一边百度一边操作的,所以对照博文进行mysql在线安装: wget https://cdn.mysql.com//Downloads/MySQL-5.7/mysql-5.7.26-linux-glibc2.12-x86_64.tar.gz 回车确认时出现第一个问题:bash:wget:command not

Couldn't resolve host 'mirrorlist.centos.org'解决办法

今天在服务器上安装oneinstack时, 输入命令: wget http://mirrors.linuxeye.com/oneinstack-full.tar.gz 出现: Couldn't resolve host 'mirrorlist.centos.org' 无法解析 解决方法: [[email protected] ~]# vim /etc/resolv.conf nameserver 8.8.8.8 就好了. 不要怕问题,所有的问题,都是让你收获答案来的. ----------  招

PYCURL ERROR 6 - “Couldn't resolve host 'mirrorlist.centos.org'”

在虚拟机上安装的CentOS,估计是网络配置问题,导致yum update和yum install之类的功能的用不了.出现标题上面的错误. ifdown [network_adapter] ifup [network_adapter] yum update 尝试以上命令就可以解决了. reference:http://stackoverflow.com/questions/20816133/pycurl-error-6-couldnt-resolve-host-mirrorlist-centos

CentOS网络设置 couldn't resolve host 'mirrorlist.centos.org问题解决

今天在虚拟机上安装完CentOS6.5之后,首次使用时yum命令安装软件时,出现一堆的"couldn't resolve host 'mirrorlist.centos.org"这个问题. 上网上查了半天,很多都说在/etc/resolv.conf文件末尾添加下边这几段 [plain] view plain copy nameserver 8.8.8.8 nameserver 8.8.4.4 serchdomain localdomain ...布拉布拉布拉...如是云云... 可我试

解决 "Could not resolve host: mirrorlist.centos.or

解决 "Could not resolve host: mirrorlist.centos.org; 未知的错误" 安装yum报以下错误:错误引起主要是因为环境读取不到yun引起的.可以考虑/etc/sysconfig/network-scripts/ifcfg-eth0 配置出错导致网络不通.或者/etc/resolv.conf的DNS配置出错.或者可以考虑清楚yum缓存影响(yum clean all)经过尝试之后,以下步骤解决了我的问题:vi /etc/resolv.conf n