CentOS 使用yum命令安装出现错误提示”could not retrieve mirrorlist http://mirrorlist.centos.org
2014-12-16 17:08
901 查看
刚安装完CentOS,使用yum命令安装一些常用的软件,使用如下命令:yum –y install gcc.
提示如下错误信息:
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=i386&repo=os error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"
Error: Cannot find a valid baseurl for repo: base
出现如下错误信息,是因为DNS配置错误,我装的是Cent OS 6.4 Server,没有图形界面,这个版本默认安装后,配置文件中没有配置DNS。
通过更改配置文件来解决
1.使用vi打开DNS的配置文件进行修改:
在命令提示符中输入: vi /etc/sysconfig/network-scripts/ifcfg-eth0
用vi 打开这个文件后,接下来会出现截图的内容, 其中要注意两个配置(按下面的值去设置),如果不会使用vi的同学,请自行google或者百度用法。
ONBOOT=yes
MM_CONTROLLED=no
设置好后。
重启CentOS后一切就正常了。
相关文章推荐
- CentOS 使用yum命令安装出现错误提示”could not retrieve mirrorlist http://mirrorlist.centos.org ***” - ybq155
- CentOS 使用yum命令安装出现错误提示”could not retrieve mirrorlist http://mirrorlist.centos.org
- CentOS 使用yum命令安装出现错误提示”could not retrieve mirrorlist http://mirrorlist.centos.org ***”
- CentOS 使用yum命令安装出现错误提示”could not retrieve mirrorlist http://mirrorlist.centos.org ***”
- 【转】CentOS 使用yum命令安装出现错误提示”could not retrieve mirrorlist http://mirrorlist.centos.org ***”
- CentOS 使用yum命令安装出现错误提示”could not retrieve mirrorlist http://mirrorlist.centos.org ***”
- CentOS----使用yum命令出现“could not retrieve mirrorlist http://mirrorlist.centos.org ***” - ybq155”
- 【CentOS6.5】安装之DNS配置错误,yum install 软件报错:ERROR 6或者56错误提示”could not retrieve mirrorlist http://mirrorlist.centos.org ***”
- 错误提示”could not retrieve mirrorlist http://mirrorlist.centos.org ”
- CentOS使用yum安装软件时出现Could not retrieve mirrorlist
- CentOS 使用yum命令安装出现错误提示:Loaded plugins: fastestmirror, refresh-packagekit, security
- yum 执行安装时 报 Could not retrieve mirrorlist 错误
- 【CentOS7】Could not retrieve mirrorlist http://mirrorlist.centos.org/?...
- centos的yum出现Could not retrieve mirrorlist解决方法 发布时间:2014-12-11 09:36:22 编辑:AHLinux.com
- yum安装软件报错:curl#6 - "Could not resolve host: mirrorlist.centos.org; Temporary failure in name resolut
- Could not retrieve mirrorlist http://mirrorlist.centos.org || PYCURL ERROR 6
- CentOS yum出现“Could not retrieve mirrorlist ”的解决办法
- centos 安装工具出现提示错误:Couldn't resolve host 'mirrorlist.centos.org'
- CentOS报错:Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock32 error was 14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error"
- Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error was