wget: unable to resolve host address `http'

后端 未结 4 1834
失恋的感觉
失恋的感觉 2020-12-29 21:56

I am getting this strange thing on my Ubuntu 12.04 64-bit machine when I do a wget

$ wget google.com

--2014-07-18 14:44:32--  http://google.com         


        
相关标签:
4条回答
  • 2020-12-29 22:14

    If using Vagrant try reloading your box. This solved my issue.

    0 讨论(0)
  • 2020-12-29 22:23

    The DNS server seems out of order. You can use another DNS server such as 8.8.8.8. Put nameserver 8.8.8.8 to the first line of /etc/resolv.conf.

    0 讨论(0)
  • 2020-12-29 22:24

    I figured out what went wrong. In the proxy configuration of my box, an extra http:// got prefixed to "proxy server with http".

    Example..

    http://http://proxy.mycollege.com

    and that has created problems. Corrected that, and it works perfectly.

    Thanks @WhiteCoffee and @ChrisBint for your suggestions!

    0 讨论(0)
  • 2020-12-29 22:33

    remove the http or https from wget https:github.com/facebook/facebook-php-sdk/archive/master.zip . this worked fine for me.

    0 讨论(0)
提交回复
热议问题