I am a beginner in programming and I tried to install GHCup by their website using the code:
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
And this happened:
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!
I tried other ways to install it, but they also failed.
Update curl and Dependencies
Ensure your curl is up-to-date, as an outdated version can sometimes cause issues. Update curl using your system’s package manager:
For Ubuntu/Debian: sudo apt update && sudo apt install curl -y
For Fedora:sudo dnf update && sudo dnf install curl -y
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With