代码之家  ›  专栏  ›  技术社区  ›  bcvery1

新阴谋集团安装重复错误

  •  0
  • bcvery1  · 技术社区  · 7 年前

    我刚刚从安装了完整的Haskell平台 https://www.haskell.org/platform/windows.html 安装到64位Windows 7计算机上。我遵循了本页的第3步。

    无论我现在对阴谋集团执行什么命令,它都会给出相同的错误。请参阅以下命令和错误序列。这是在一个空目录中完成的:

    D:\test>cabal init
    dieVerbatim: user error (cabal: Failed to download
    http://objects-us-west-1.dream.io/hackage-mirror/root.json : No Status Code
    could be parsed from response: --17:29:30--
    http://objects-us-west-1.dream.io/hackage-mirror/root.json
    => `C:\Users\BEN~1.CRA\AppData\Local\Temp\transportAdapterGet570528145'
    Connecting to objects-us-west-1.dream.io:80... connected!
    HTTP request sent, awaiting response... 200 OK
    2 Content-Length: 3850
    3 Accept-Ranges: bytes
    4 Last-Modified: Mon, 12 Sep 2016 12:14:29 GMT
    5 ETag: "c5688ef68afb3f6186d35162423bd8c6"
    6 x-amz-request-id: tx0000000000000003f6055-0059e0e9ea-19c1b67c-default
    7 Content-Type: application/json
    8 Date: Fri, 13 Oct 2017 16:29:30 GMT
    9 Connection: keep-alive
    10
    
    0K ... 100% @ 3.67 MB/s
    
    17:29:30 (3.67 MB/s) -
    `C:\Users\BEN~1.CRA\AppData\Local\Temp\transportAdapterGet570528145' saved
    [3850/3850]
    
    
    FINISHED --17:29:30--
    Downloaded: 3,850 bytes in 1 files
    )
    D:\test>cabal configure
    dieVerbatim: user error (cabal: Failed to download
    http://objects-us-west-1.dream.io/hackage-mirror/root.json : No Status Code
    could be parsed from response: --17:29:35--
    http://objects-us-west-1.dream.io/hackage-mirror/root.json
    => `C:\Users\BEN~1.CRA\AppData\Local\Temp\transportAdapterGet570528145'
    Connecting to objects-us-west-1.dream.io:80... connected!
    HTTP request sent, awaiting response... 200 OK
    2 Content-Length: 3850
    3 Accept-Ranges: bytes
    4 Last-Modified: Mon, 12 Sep 2016 12:14:29 GMT
    5 ETag: "c5688ef68afb3f6186d35162423bd8c6"
    6 x-amz-request-id: tx0000000000000001249f3-0059e0e9f0-19c8c27c-default
    7 Content-Type: application/json
    8 Date: Fri, 13 Oct 2017 16:29:36 GMT
    9 Connection: keep-alive
    10
    
    0K ... 100% @ 3.67 MB/s
    
    17:29:36 (3.67 MB/s) -
    `C:\Users\BEN~1.CRA\AppData\Local\Temp\transportAdapterGet570528145' saved
    [3850/3850]
    
    
    FINISHED --17:29:36--
    Downloaded: 3,850 bytes in 1 files
    )
    D:\test>cabal install cabal-install
    dieVerbatim: user error (cabal: Failed to download
    http://objects-us-west-1.dream.io/hackage-mirror/root.json : No Status Code
    could be parsed from response: --17:29:45--
    http://objects-us-west-1.dream.io/hackage-mirror/root.json
    => `C:\Users\BEN~1.CRA\AppData\Local\Temp\transportAdapterGet299511942'
    Connecting to objects-us-west-1.dream.io:80... connected!
    HTTP request sent, awaiting response... 200 OK
    2 Content-Length: 3850
    3 Accept-Ranges: bytes
    4 Last-Modified: Mon, 12 Sep 2016 12:14:29 GMT
    5 ETag: "c5688ef68afb3f6186d35162423bd8c6"
    6 x-amz-request-id: tx0000000000000003f626b-0059e0e9f9-19c1b67c-default
    7 Content-Type: application/json
    8 Date: Fri, 13 Oct 2017 16:29:45 GMT
    9 Connection: keep-alive
    10
    
    0K ... 100% @ 3.67 MB/s
    
    17:29:45 (3.67 MB/s) -
    `C:\Users\BEN~1.CRA\AppData\Local\Temp\transportAdapterGet299511942' saved
    [3850/3850]
    
    
    FINISHED --17:29:45--
    Downloaded: 3,850 bytes in 1 files
    )
    

    它引用的临时文件不存在。我可以访问 dream.io 从我的机器使用铬。

    我是哈斯克尔/阴谋集团发展的新手,如果我错过了一些明显的东西,我深表歉意。

    1 回复  |  直到 7 年前
        1
  •  1
  •   sclv    6 年前

    将正确答案作为communitywiki转发给后代:

    https://github.com/haskell/cabal/issues/4747#issuecomment-327888643 cabal --http-transport=plain-http update