linux安装软件时提示找不到镜像的问题:Couldn't resolve host 'mirrorlist.centos.org'
2014-03-29 13:13
393 查看
问题:
[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
[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
相关文章推荐
- Linux—图解rsyslog及通过 Loganalyzer实现集中式日志管控 推荐
- Booting ARM Linux
- linux errno定义
- 如何让linux的history命令显示时间记录
- centos安装office及PDF阅读器
- CentOS升级PHP5.4真不容易
- Linux下搭建FTP服务
- linux下搭建 DNS 服务器
- Linux Crontab 安装使用详细说明
- linux中使用cron制定系统定时任务
- CentOS忘记root密码解决办法
- linux下dhcp详解及配置应用
- Centos安装Dr.com(还未测试)
- MPC8313ERDB从内存启动Linux系统
- 鸟哥LINUX学习笔记(1)
- kali linux 安装audacious osdlyrics歌词插件
- 深入理解SELinux SEAndroid(最后部分)
- 深入理解SELinux SEAndroid(第二部分)
- 总结之:CentOS 6.5 LAMP分主机平台的搭建及测试 推荐
- Linux下libevent安装与示例