问题描述
当尝试按照 haskell.org/platform 上的默认说明中的说明通过 Chocolatey 安装 Haskell 平台时,我在尝试安装 cabal 和 ghc 包时遇到错误。
**cabal message:**
Attempt to get headers for https://downloads.haskell.org/cabal/cabal-install-3.4.0.0/cabal-install-3.4.0.0-x86_64-windows.zip Failed.
The remote file either doesn't exist,is unauthorized,or is forbidden for url 'https://downloads.haskell.org/cabal/cabal-install-3.4.0.0/cabal-install-3.4.0.0-x86_64-windows.zip'. Exception calling "GetResponse" with "0" argument(s): "The operation has timed out"
Downloading cabal 64 bit
from 'https://downloads.haskell.org/cabal/cabal-install-3.4.0.0/cabal-install-3.4.0.0-x86_64-windows.zip'
ERROR: The remote file either doesn't exist,or is forbidden for url 'https://downloads.haskell.org/cabal/cabal-install-3.4.0.0/cabal-install-3.4.0.0-x86_64-windows.zip'. Exception calling "GetResponse" with "0" argument(s): "The operation has timed out"
The install of cabal was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\cabal\tools\chocolateyInstall.ps1'.
See log for details.
**ghc messages:**
Attempt to get headers for https://downloads.haskell.org/~ghc/9.0.1/ghc-9.0.1-x86_64-unkNown-mingw32.tar.xz Failed.
The remote file either doesn't exist,or is forbidden for url 'https://downloads.haskell.org/~ghc/9.0.1/ghc-9.0.1-x86_64-unkNown-mingw32.tar.xz'. Exception calling "GetResponse" with "0" argument(s): "The operation has timed out"
Downloading ghc 64 bit
from 'https://downloads.haskell.org/~ghc/9.0.1/ghc-9.0.1-x86_64-unkNown-mingw32.tar.xz'
ERROR: The remote file either doesn't exist,or is forbidden for url 'https://downloads.haskell.org/~ghc/9.0.1/ghc-9.0.1-x86_64-unkNown-mingw32.tar.xz'. Exception calling "GetResponse" with "0" argument(s): "The operation has timed out"
The install of ghc was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\ghc\tools\chocolateyInstall.ps1'.
See log for details.
任何帮助很大
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)