7

当我做cabal install criterion

我收到有关包裹的以下错误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,并且我的网络连接在系统的其余部分中很好。

4

2 回答 2

4

这是一个代理设置。ftp_proxyunset or http_proxybut also是不够的https_proxy。当我从系统设置中禁用终端代理配置时,GNOME 不会自动删除它。很烦人。我将编写一个禁用所有代理设置的 shell 脚本。

很抱歉打扰大家。

于 2011-10-19T09:42:48.090 回答
0

您也可以强制代理:

export http_proxy=hackage.haskell.org:80
cabal update
export http_proxy=
于 2015-12-24T21:18:41.960 回答