wget:无法解析主机地址“www.cmake.org”

时间:2022-09-03 21:51:38

I'm trying to install cmake at my CentOS 6.2, but for some reason i get this error message : Resolving www.cmake.org... failed: Temporary failure in name resolution. wget: unable to resolve host address “www.cmake.org”. This is the command i wrote : wget http://www.cmake.org/files/v2.8/cmake-2.8.3.tar.gz

我正在尝试在我的CentOS 6.2上安装cmake,但由于某种原因,我收到此错误消息:解析www.cmake.org ...失败:名称解析暂时失败。 wget:无法解析主机地址“www.cmake.org”。这是我写的命令:wget http://www.cmake.org/files/v2.8/cmake-2.8.3.tar.gz

2 个解决方案

#1


This is probably old, but here is how it worked for me: 1. Comment out the IPV6 properties on /etc/sysconfig/network-scripts/ifcfg-eth0 #IPV6_AUTOCONF=yes #IPV6INIT=yes 2. Restart your network service. service network restart Then wget worked like a charm ;)

这可能是旧的,但以下是它对我有用的方法:1。在/ etc / sysconfig / network-scripts / ifcfg-eth0#IPV6_AUTOCONF = yes#IPV6INIT = yes注释掉IPV6属性2.重新启动网络服务。服务网络重启然后wget就像一个魅力;)

#2


Yes. In my case this was because of wrong entry of DNS server in my local "/etc/resolv.conf".

是。在我的情况下,这是因为在我的本地“/etc/resolv.conf”中错误输入了DNS服务器。

I have added the proper entry in "/etc/resolv.conf" and then restarted the netwrork using "# service network restart".

我在“/etc/resolv.conf”中添加了正确的条目,然后使用“#service network restart”重新启动了netwrork。

Then I was able to use "wget".

然后我就可以使用“wget”了。

Thank you very much.

非常感谢你。

#1


This is probably old, but here is how it worked for me: 1. Comment out the IPV6 properties on /etc/sysconfig/network-scripts/ifcfg-eth0 #IPV6_AUTOCONF=yes #IPV6INIT=yes 2. Restart your network service. service network restart Then wget worked like a charm ;)

这可能是旧的,但以下是它对我有用的方法:1。在/ etc / sysconfig / network-scripts / ifcfg-eth0#IPV6_AUTOCONF = yes#IPV6INIT = yes注释掉IPV6属性2.重新启动网络服务。服务网络重启然后wget就像一个魅力;)

#2


Yes. In my case this was because of wrong entry of DNS server in my local "/etc/resolv.conf".

是。在我的情况下,这是因为在我的本地“/etc/resolv.conf”中错误输入了DNS服务器。

I have added the proper entry in "/etc/resolv.conf" and then restarted the netwrork using "# service network restart".

我在“/etc/resolv.conf”中添加了正确的条目,然后使用“#service network restart”重新启动了netwrork。

Then I was able to use "wget".

然后我就可以使用“wget”了。

Thank you very much.

非常感谢你。