linux安装软件时提示找不到镜像的问题:Couldn't resolve host 'mirrorlist.centos.org'
来源:互联网 发布:久久热永久域名获取 编辑:程序博客网 时间:2024/06/10 23:39
问题:
[root@cddserver2 ~]# yum -y install gcc-*
Loaded plugins: fastestmirror, presto
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 retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
原因:
dns服务器没有配置正确
解决办法:
1、打开文件/etc/resolv.conf在其中添加:
nameserver 8.8.8.8
nameserver 8.8.4.4
search localdomain
2、然后重启网卡:使用命令: service network restart
另:安装make:yum -y install make
- linux安装软件时提示找不到镜像的问题:Couldn't resolve host 'mirrorlist.centos.org'
- linux安装软件时提示找不到镜像的问题:Couldn't resolve host 'mirrorlist.centos.org'
- linux安装软件时提示找不到镜像的问题:Couldn't resolve host 'mirrorlist.centos.org'
- linux安装软件时提示找不到镜像的问题:Couldn't resolve host 'mirrorlist.centos.org'
- linux安装软件时提示找不到镜像的问题:Couldn't resolve host 'mirrorlist.centos.org'
- linux安装软件时提示找不到镜像的问题:Couldn't resolve host 'mirrorlist.centos.org'
- CentOS安装软件时提示找不到镜像:Couldn’t resolve host
- Couldn't resolve host 'mirrorlist.centos.org
- centos 安装工具出现提示错误:Couldn't resolve host 'mirrorlist.centos.org'
- PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"
- when build docker, Couldn't resolve host 'mirrorlist.centos.org'"
- yum-Couldn't resolve host 'mirrorlist.centos.org'
- 解决Couldn't resolve host 'mirrorlist.centos.org
- 解决Couldn't resolve host 'mirrorlist.centos.org
- CentOS网络设置 couldn't resolve host 'mirrorlist.centos.org问题解决
- CentOS网络设置 couldn't resolve host 'mirrorlist.centos.org问题解决
- 14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"
- 【gitlab安装问题集】yum安装报错"Couldn't resolve host 'mirror.centos.org'"
- Reflector的使用
- 操作符号和它们相对应的可选方法和…
- sql 中 case when 语法(转载…
- Android之二维码的生成与解析
- 百度地图api:打车费用计算
- linux安装软件时提示找不到镜像的问题:Couldn't resolve host 'mirrorlist.centos.org'
- 如何提高汇编代码的可读性
- 基于Flex的 图片式 电子热点地图 ImageMap v3.0 已经发布,并在项目中应用。
- 我的学习目标和计划
- 判断素数--char3
- LAMMPS MKL
- hdu 4496 (并差集)
- VC6.0安装Boost以支持正则表达式
- Codeforces-253A