2011-10-18 21 views
6

私は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) 

そして私は再びそれ

Downloading the latest package list from hackage.haskell.org 
cabal: openTCPConnection: host lookup failure for "" 

何でエラーをcabal updateを実行に関する次のエラーを取得間違っている?

私はUbuntu 11.10とGHC 7.0.4をthis PPAから使用しています。私のネットワーク接続はシステムの残りの部分で問題ありません。

+2

あなたの秘密結社の設定を確認することができますか? '〜/ .cabal/config'ファイルで、' remote-repo: 'で始まる行を探します。' remote-repo:hackage.haskell.org:http://hackage.haskell.org/packages /アーカイブ。 –

+1

そして、ping'ing hackage.haskell.orgを実行して、ネットワーク上の問題ではないことを確認してください。 – ivanm

答えて

3

プロキシ設定です。 ftp_proxyまたはhttp_proxyの設定を解除するだけでは不十分でしたが、https_proxyもありました。 GNOMEは、ターミナルプロキシ設定をシステム設定から無効にすると自動的に削除されません。とてもうるさい。 は、すべてのプロキシの設定を無効にするシェルスクリプトを作成します。

ご迷惑をおかけして申し訳ありません。

+1

問題ありません。私は同じことをしたので、あなたは私を助けました。 – nont

0

また、プロキシを強制することがあります。

export http_proxy=hackage.haskell.org:80 
cabal update 
export http_proxy= 
関連する問題