这个错误主要是因为DNS引起的

今天在linux环境通过yum安装软件报了以下错误:

[root@multi-mysql yum.repos.d]# yum install ncurses devel -y

Loaded plugins: fastestmirror, security

Loading mirror speeds from cached hostfile

Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error was

14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"

Error: Cannot find a valid baseurl for repo: base

从字面意义上看是不能解析mirrorlist.centos.org这个地址,应该是跟dns网络配置有关系,最后解决方法是在DNS域名解析的配置文件增加DNS服务器的IP地址:

[root@multi-mysql ~]# vim /etc/resolv.conf

nameserver 8.8.8.8

nameserver 202.106.0.20

重启网络服务

[root@multi-mysql ~]# /etc/init.d/network restart

Shutting down interface eth0:                              [  OK  ]

Shutting down loopback interface:                          [  OK  ]

Bringing up loopback interface:                            [  OK  ]

Bringing up interface eth0:  Determining if ip address 192.168.1.202 is already in use for device eth0...

                                                           [  OK  ]

重新yum安装,正常

[root@multi-mysql ~]# yum install nmap -y

Loaded plugins: fastestmirror, security

Loading mirror speeds from cached hostfile

 * base: mirrors.yun-idc.com

 * extras: mirrors.yun-idc.com

 * updates: mirrors.yun-idc.com

base                                                                                                         | 3.7 kB     00:00     

base/primary_db                                                                                              | 4.6 MB     00:01     

extras                                                                                                       | 3.4 kB     00:00     

extras/primary_db                                                                                            |  33 kB     00:00     

updates                                                                                                      | 3.4 kB     00:00     

updates/primary_db                                                                                           | 2.6 MB     00:00     

Setting up Install Process

Resolving Dependencies

--> Running transaction check

---> Package nmap.x86_64 2:5.51-4.el6 will be installed

--> Finished Dependency Resolution

......此处省略

linux yum错误 14: PYCURL ERROR 6 - Couldn't resolve host 'mirrorlist.centos.org'相关推荐

  1. 14: PYCURL ERROR 6 - Couldn't resolve host 'mirro

    DNS配置问题 vi /etc/sysconfig/network-scripts/ifcfg-eth0 增加DNS配置 DNS1=8.8.8.8 DNS2=8.8.4.4 转载于:https://m ...

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

    转自:http://blog.51cto.com/oldcat1981/1719825 今天在linux环境通过yum安装软件报了以下错误: [root@multi-mysql yum.repos.d ...

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

    问题: [root@cddserver2 ~]# yum -y install gcc-* Loaded plugins: fastestmirror, presto Could not retrie ...

  4. Linux学习笔记008---Centos7中Couldn't resolve host 'mirrorlist.centos.org'

    JAVA技术交流QQ群:170933152 这个问题,由于本地上不了网: 是因为没有配置dns解析 centos中配置dns解析: [root@sulei sulei]# yum install do ...

  5. yum源报错 提示 Couldnt resolve host mirrorlist.centos.org

    centos的yum源不用配置,装机之后就能使用,如遇到如此提示: Loaded plugins: fastestmirror, refresh-packagekit, security Loadin ...

  6. docker build 没有网络 执行dockerfile中yum报错 curl#6 - “Could not resolve host: mirrorlist.centos.org 解决方法

    报错现象 Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo= ...

  7. CentOS报错:“Could not resolve host: mirrorlist.centos.org; Unknown error“

    在电脑上安装了VMware Workstation Pro, 安装了一个虚拟机想要安装docker,在执行如下yum命令 [root@10 ~]# sudo yum install -y yum-ut ...

  8. 记一次“Could not resolve host: mirrorlist.centos.org; 未知的错误“的解决过程

    小白要在linux上装git. 直接输入yum -y install git 一通百度,说是网络没设置,跟着一通操作还是没解决!! 这时候转折来了 ping www.baidu.com 也不通 考虑是 ...

  9. 更改yum源配置后执行报错[Errno 14] PYCURL ERROR 22 - “The requested URL returned error: 404 Not Found”

    更改yum源配置后执行报错 报错信息入下 //[root@bucktanc6 yum.repos.d]# yum clean all Loaded plugins: fastestmirror Cle ...

最新文章

  1. PowerDesigner的安装
  2. SQL 结合CASE WHEN 实现二维统计
  3. Python——Python3.6.0+Scrapy安装方法(总算没有bug了)
  4. 26.课时26.【Django模版】if标签使用详解(Av61533158,P26)
  5. pandas 读取csv_「技巧」Pandas常见的性能优化方法
  6. dategurd oracle_Oracle之11g DataGuard
  7. tensorflow神奇问题
  8. sql2000执行sql2005导出的数据脚本时出现“提示含有超过64K限度的行”(转)
  9. linux文件目录类命令--pwd命令
  10. 奇妙生活-神奇的数字-1的故事
  11. Autosar OSEK 网络管理学习笔记
  12. Python 利用 BeautifulSoup 爬取网站获取新闻流
  13. 码破苍穹:空指针的传说
  14. UE4 GamePlay架构
  15. ios 直播间点赞动画
  16. java中jlaber用法_laber的for属性
  17. Flink SQL 流计算可视化 UI 平台
  18. 六行python代码的爱心曲线_6行python代码的爱心曲线
  19. 编程python入门可以嘛_我为什么选择python——对于编程零基础的人为什么建议从Python入门...
  20. 单机rust怎么设置白天_rust怎么设置全屏 | 手游网游页游攻略大全

热门文章

  1. Linux_用户权限管理
  2. Python基本语法_强制数据类型转换
  3. Makefile文件应用——huge项目
  4. 地球椭球体(Ellipsoid)、大地基准面(Datum)及地图投影(Projection)三者的基本概念
  5. C/C++ 框架,类库,资源集合
  6. Windows Phone 设置DatePicker图标
  7. “偷懒”的表单验证Demo
  8. 数据库设计中的14个技巧
  9. 事务隔离级别IsolationLevel
  10. 【例题收藏】◇例题·6◇ 电压机制(voltage)