Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do i fix this error installing GHCup?

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.

like image 620
Pedro Figueiredo Avatar asked Dec 06 '25 13:12

Pedro Figueiredo


1 Answers

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

like image 106
Farshid Avatar answered Dec 09 '25 00:12

Farshid