ubuntu不能解析域名No address associated with hostname
来源:互联网 发布:樱井知香迅雷种子磁力 编辑:程序博客网 时间:2024/05/19 19:30
ubuntu修复不能解析域名
(apt-get update - No address associated with hostname)
更新 apt 仓库出现以下错误:
W:Failed to fetch http://extras.ubuntu.com/ubuntu/dists/precise/Release.gpg Something wicked happened resolving 'extras.ubuntu.com:http' (-5 - No address associated with hostname)
无论是 wget, dig, ping 都显示是域名解析出了问题。网络也不通,提示unknown hostname,网页也打不开。
以下为修复前的 /etc/network/interfaces:
# interfaces(5) file used by ifup(8) and ifdown(8)
#loopback network interface
auto lo
iface lo inet loopback
# primary network interface
修复域名解析,在 /etc/network/interfaces 加上 dns-nameservers 8.8.8.8
# interfaces(5) file used by ifup(8) and ifdown(8)
#loopback network interface
auto lo
iface lo inet loopback
# primary network interface
auto eth0
iface eth0 inet dhcp
dns-nameservers 8.8.8.8
重启网络服务
# sudo service networking restart
或重启系统,问题被成功修复。
- ubuntu不能解析域名No address associated with hostname
- no address associated with hostname
- android No address associated with hostname错误
- 解决Ubuntu apt-get install时No address associated with hostname
- Ubuntu 10.10 软件更新问题 (-5 - No address associated with hostname)
- Unable to resolve host : No address associated with hostname
- Unable to resolve host : No address associated with hostname
- Unable to resolve host “<insert URL here>” No address associated with hostname
- apache [error] (EAI 5)No address associated with hostname: Could not resolve host name
- IOException Unable to resolve host "api.linkface.cn": No address associated with hostname
- java.net.UnknownHostException: Unable to resolve host "xxx": No address associated with hostname
- 关于java.net.UnknownHostException: Unable to resolve host "xx": No address associated with hostname
- okhttp Unable to resolve host “<host-name>”: No address associated with hostname的解决办法
- Unable to resolve host "api1.51zhenghao.cn": No address associated with hostname
- Unable to resolve host "api.51zhenghao.cn": No address associated with hostname
- 不能解析域名(ubuntu)
- 关于Git克隆代码时出现ssh: rapid: no address associated with name的问题
- Caused by: libcore.io.GaiException: getaddrinfo failed: EAI_NODATA (No address associated with hostn
- 同步IO和异步IO
- Android中Parcelable接口用法
- ML—方差分析的思考
- 查询指定sequence的当前值 oracle
- iOS 在一个UILabel里显示不同的颜色,给文字加下划线
- ubuntu不能解析域名No address associated with hostname
- 端口转发工具
- Myeclipse java 项目转换为 web 项目
- InDesign插件开发中的ODFRC
- Android —— Display
- socket编程——sockaddr_in结构体操作
- 存储过程 创建全局临时表
- meta中的viewport指令
- 网络协议消息分片