OS X Lion 主机上的 VirtualBox Ubuntu 客户机:Curl 不起作用

OS X Lion 主机上的 VirtualBox Ubuntu 客户机:Curl 不起作用

我正在尝试使用 VirtualBox 在 OS X Lion 上的 Ubuntu VM 上安装一些 gem。我已将问题缩小到 curl,它根本没有响应。它似乎正在通过一些代理本地主机。有人知道如何让它工作吗?我对这种事情真的一无所知。它在此输出后超时:

quickstart@qs10:~$ curl -v http://www.google.com
* About to connect() to proxy localhost port 3128 (#0)
*   Trying 127.0.0.1... connected
* Connected to localhost (127.0.0.1) port 3128 (#0)
> GET http://www.google.com HTTP/1.1
> User-Agent: curl/7.21.3 (x86_64-pc-linux-gnu) libcurl/7.21.3 OpenSSL/0.9.8o zlib/1.2.3.4 libidn/1.18
> Host: www.google.com
> Accept: */*
> Proxy-Connection: Keep-Alive

编辑:
我可以 ping google,并且 wget 做同样的事情......

相关内容