Closed orsenthil closed 5 months ago
I don't think we can fix this since snaps are afaik separate from the rest of the OS by design
The error message is:
==> Downloading https://ghcr.io/v2/homebrew/portable-ruby/portable-ruby/blobs/sha256:f7be167f7ac4f296b9f4c5874ceeea4aafd9999c3c7f2b0378cae7dd273e2322 Warning: Failed to open the file Warning: /home/senthil/.cache/Homebrew/portable-ruby-3.1.4.x86_64_linux.bottle. Warning: tar.gz.incomplete: Permission denied 0.0%curl: (23) Failure writing output to destination
==> Downloading https://github.com/Homebrew/homebrew-portable-ruby/releases/download/3.1.4/portable-ruby-3.1.4.x86_64_linux.bottle.tar.gz Warning: Failed to open the file Warning: /home/senthil/.cache/Homebrew/portable-ruby-3.1.4.x86_64_linux.bottle. Warning: tar.gz.incomplete: Permission denied
0.0%curl: (23) Failure writing output to destination
It is very likely that this issue has nothing to do with Homebrew.
Snap curl is extremely limited and not supported. It breaks many things even outside of Homebrew (e.g. Nix, rustup, nvm, etc.).
This is because snap curl is heavily sandboxed. It can write to your home directory but even then the likes of ~/.cache
are also restricted. If you want to use snap curl, you can probably create a non-hidden subdirectory in your home directory and set HOMEBREW_CACHE
to that. Homebrew also respects XDG_CACHE_HOME
should you wish to also use that cache for other applications.
install
oruninstall
script?brew config
andbrew doctor
and included their output with your issue? If you couldn't install: provided your OS version with the output of your issue?What you were trying to do (and why)
I was trying to install homebrew on Ubuntu Linux 22.04 I realized it didn't come with curl, but recommended me to do
snap
install curl.It installed curl 8.1.2
And with this curl version, the Homebrew installation fails in a reproducible manner.
What happened (include command output)
Workaround / Fix
I fixed this by using apt-get install version of curl
which was