linux安装软件时提示找不到镜像的问题:Couldn't resolve host 'mirrorlist.centos.org'
来源:互联网 发布:darma公司 知乎 编辑:程序博客网 时间:2024/06/05 10:43
问题:
[root@cddserver2 ~]# yum installgroup "KDE"
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
ifconfig 网卡获取ip
原因:
dns服务器没有配置正确
网卡未配置
解决办法:
1、打开文件/etc/resolv.conf在其中添加:
nameserver 8.8.8.8
nameserver 8.8.4.4
search localdomain
2、
vi /etc/sysconfig/network-scripts/ifcfg-eth0
将配置改成如下:
重启网卡:
service network restart
ping www.baidu.com...
ok 收到回复包...
0 0
- 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'"
- 苹果如何管理:retainCount、retain、release
- iOS开发-ScollView实现图片缩放
- Android ProgressDialog 自定义方法
- 关于Dubbo自行实践的知识与解决的问题
- Android Service创建USB HOST通信
- linux安装软件时提示找不到镜像的问题:Couldn't resolve host 'mirrorlist.centos.org'
- 使用脚本配置yum(支持rhel5、6)
- Latent Dirichlet Allocation (LDA)
- WebSphere(was7.0)无法启动
- 编一个简单的日期计算器 输入年、月、日,输出该日期的前一天和后一天
- [python] 数据类型
- 用Ant实现Java项目的自动构建和部署
- source insight快捷键及使用技巧
- 再探.NET的PE文件结构(安全篇)