Cabal更新:无法下载

时间:2018-01-27 22:19:32

标签: haskell cabal

尽管反复尝试,但Cabal没有更新。 为什么Cabal不能正常工作? 我该怎么办? 最后一次更新可追溯到89天。

Windows PowerShell
Copyright (C) Microsoft Corporation. Tutti i diritti sono riservati.

PS C:\WINDOWS\system32> ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.2.2

PS C:\WINDOWS\system32> cabal --version
cabal-install version 2.0.0.1
compiled using version 2.0.1.1 of the Cabal library
PS C:\WINDOWS\system32>

PS C:\WINDOWS\system32> cabal update
Downloading the latest package list from hackage.haskell.org
dieVerbatim: user error (cabal.exe: Failed to download
http://objects-us-west-1.dream.io/hackage-mirror/01-index.tar.gz : No Status
Code could be parsed from response: Eccezione durante una richiesta WebClient.
)

1 个答案:

答案 0 :(得分:6)

基于this git issue,使用

有一种解决方法
 cabal --http-transport=plain-http update

代替。 (强迫cabal不要使用powershell的webclient)

相关问题