尝试安装 cabal 时 ghcup 安装失败

发布于 2025-01-11 12:42:34 字数 2133 浏览 0 评论 0原文

当尝试从官方页面使用curl安装ghcup时,会抛出以下错误。

curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh

乌班图:

Debug: Identified Platform as: Linux Ubuntu, 20.04
Debug: last access was 30.9227239s ago, cache interval is 300s
Debug: Decoding yaml at: /root/.ghcup/cache/ghcup-0.0.7.yaml
Warn: New ghc version available. To upgrade, run 'ghcup install ghc 9.2.1'
Debug: Requested to install cabal version 3.4.0.0
Info: downloading: https://downloads.haskell.org/~cabal/cabal-install-3.4.0.0/cabal-install-3.4.0.0-x86_64-ubuntu-16.04.tar.xz as file /tmp/ghcup-532680fdab846e84/cabal-install-3.4.0.0-x86_64-ubuntu-16.04.tar.xz
Error: Download failed: Process "curl" with arguments ["-fL", "-o",
                                                "/tmp/ghcup-532680fdab846e84/cabal-install-3.4.0.0-x86_64-ubuntu-16.04.tar.xz.tmp",
                                                "https://downloads.haskell.org/~cabal/cabal-install-3.4.0.0/cabal-install-3.4.0.0-x86_64-ubuntu-16.04.tar.xz"] failed with exit code 1.

Mac:

Debug: Identified Platform as: Darwin
Debug: last access was 124.44841s ago, cache interval is 300s
Debug: Decoding yaml at: /Users/orelvislagovasallo/.ghcup/cache/ghcup-0.0.7.yaml
Warn: New ghc version available. To upgrade, run 'ghcup install ghc 9.2.1'
Debug: Requested to install cabal version 3.4.0.0
Info: downloading: https://downloads.haskell.org/~cabal/cabal-install-3.4.0.0/cabal-install-3.4.0.0-x86_64-darwin-sierra.tar.xz as file /private/var/folders/d6/t4n84vb949z0w4lym5lp72yw0000gn/T/ghcup-df9e399af7820a34/cabal-install-3.4.0.0-x86_64-darwin-sierra.tar.xz
Error: Download failed: Process "curl" with arguments ["-fL", "-o",
                                                "/private/var/folders/d6/t4n84vb949z0w4lym5lp72yw0000gn/T/ghcup-df9e399af7820a34/cabal-install-3.4.0.0-x86_64-darwin-sierra.tar.xz.tmp",
                                                "https://downloads.haskell.org/~cabal/cabal-install-3.4.0.0/cabal-install-3.4.0.0-x86_64-darwin-sierra.tar.xz"] failed with exit code 1.

When trying to install ghcup using curl from the official page, it throws the following error.

curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh

Ubuntu:

Debug: Identified Platform as: Linux Ubuntu, 20.04
Debug: last access was 30.9227239s ago, cache interval is 300s
Debug: Decoding yaml at: /root/.ghcup/cache/ghcup-0.0.7.yaml
Warn: New ghc version available. To upgrade, run 'ghcup install ghc 9.2.1'
Debug: Requested to install cabal version 3.4.0.0
Info: downloading: https://downloads.haskell.org/~cabal/cabal-install-3.4.0.0/cabal-install-3.4.0.0-x86_64-ubuntu-16.04.tar.xz as file /tmp/ghcup-532680fdab846e84/cabal-install-3.4.0.0-x86_64-ubuntu-16.04.tar.xz
Error: Download failed: Process "curl" with arguments ["-fL", "-o",
                                                "/tmp/ghcup-532680fdab846e84/cabal-install-3.4.0.0-x86_64-ubuntu-16.04.tar.xz.tmp",
                                                "https://downloads.haskell.org/~cabal/cabal-install-3.4.0.0/cabal-install-3.4.0.0-x86_64-ubuntu-16.04.tar.xz"] failed with exit code 1.

Mac:

Debug: Identified Platform as: Darwin
Debug: last access was 124.44841s ago, cache interval is 300s
Debug: Decoding yaml at: /Users/orelvislagovasallo/.ghcup/cache/ghcup-0.0.7.yaml
Warn: New ghc version available. To upgrade, run 'ghcup install ghc 9.2.1'
Debug: Requested to install cabal version 3.4.0.0
Info: downloading: https://downloads.haskell.org/~cabal/cabal-install-3.4.0.0/cabal-install-3.4.0.0-x86_64-darwin-sierra.tar.xz as file /private/var/folders/d6/t4n84vb949z0w4lym5lp72yw0000gn/T/ghcup-df9e399af7820a34/cabal-install-3.4.0.0-x86_64-darwin-sierra.tar.xz
Error: Download failed: Process "curl" with arguments ["-fL", "-o",
                                                "/private/var/folders/d6/t4n84vb949z0w4lym5lp72yw0000gn/T/ghcup-df9e399af7820a34/cabal-install-3.4.0.0-x86_64-darwin-sierra.tar.xz.tmp",
                                                "https://downloads.haskell.org/~cabal/cabal-install-3.4.0.0/cabal-install-3.4.0.0-x86_64-darwin-sierra.tar.xz"] failed with exit code 1.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文