我是编程初学者,我尝试使用以下代码通过他们的网站安装 GHCup:
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
这件事发生了:
curl: (23) Failure writing output to destination
[ Error ] [GHCup-05841] Download failed: Process "curl" with arguments ["--dump-header",
[ ... ] "/tmp/curl-header4067-0", "-fL", "-o",
[ ... ] "/home/pedro/.ghcup/cache/ghcup-0.0.8.yaml.tmp",
[ ... ] "https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-0.0.8.yaml"] failed with exit code 23.
"ghcup --metadata-fetching-mode=Strict upgrade" failed!
我尝试过其他方法安装,但也失败了。
我遇到了同样的错误。 Ubuntu 24.04