Cabal 更新和软件包安装错误

发布于 2024-12-10 15:25:21 字数 840 浏览 6 评论 0原文

当我执行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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

幼儿园老大 2024-12-17 15:25:21

这是一个代理设置。仅取消设置 ftp_proxyhttp_proxy 还不够,还需要取消设置 https_proxy。当我从系统设置中禁用终端代理配置时,GNOME 不会自动删除它。很烦人。我将编写一个 shell 脚本来禁用所有代理设置。

抱歉打扰大家了。

It was a proxy setting. It didn't suffice to unset ftp_proxy or http_proxy but also https_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.

御弟哥哥 2024-12-17 15:25:21

您还可以强制代理:

export http_proxy=hackage.haskell.org:80
cabal update
export http_proxy=

You may also force the proxy:

export http_proxy=hackage.haskell.org:80
cabal update
export http_proxy=
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文