Cabal 更新和软件包安装错误
当我执行cabal install criteria
时,
我收到有关包vector-algorithms
的以下错误
Warning: The package list for 'hackage.haskell.org' is 16 days old.
Run 'cabal update' to get the latest list of available packages.
Resolving dependencies...
Downloading vector-algorithms-0.4...
cabal: Error: some packages failed to install:
vector-algorithms-0.4 failed while downloading the package. The exception was:
connect: does not exist (Connection refused)
,当我运行cabal update
时,它再次出现错误,内容
Downloading the latest package list from hackage.haskell.org
cabal: openTCPConnection: host lookup failure for ""
是什么错误的?
我正在使用 此 PPA 中的 Ubuntu 11.10 和 GHC 7.0.4,并且我的网络连接状况良好系统的其余部分。
When I do cabal install criterion
I get the following error regarding the package vector-algorithms
Warning: The package list for 'hackage.haskell.org' is 16 days old.
Run 'cabal update' to get the latest list of available packages.
Resolving dependencies...
Downloading vector-algorithms-0.4...
cabal: Error: some packages failed to install:
vector-algorithms-0.4 failed while downloading the package. The exception was:
connect: does not exist (Connection refused)
And when I run cabal update
it again errors with
Downloading the latest package list from hackage.haskell.org
cabal: openTCPConnection: host lookup failure for ""
What is wrong?
I'm using Ubuntu 11.10 and GHC 7.0.4 from this PPA and my network connection is just fine in the rest of the system.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是一个代理设置。仅取消设置
ftp_proxy
或http_proxy
还不够,还需要取消设置https_proxy
。当我从系统设置中禁用终端代理配置时,GNOME 不会自动删除它。很烦人。我将编写一个 shell 脚本来禁用所有代理设置。抱歉打扰大家了。
It was a proxy setting. It didn't suffice to unset
ftp_proxy
orhttp_proxy
but alsohttps_proxy
. GNOME doesn't automatically remove terminal proxy configuraition when I disable it from system settings. Very annoying. I will write a shell-script that disables all proxy settings.Sorry for bothering you all.
您还可以强制代理:
You may also force the proxy: