这是我第一次使用 Linux,我尝试安装 Homebrew,但出现此错误:
Error: Failed to download ruby from the following locations:
- https://ghcr.io/v2/homebrew/portable-ruby/portable-ruby/blobs/sha256:fc45ee6eddf4c7a17f4373dde7b1bc8a58255ea61e6847d3bf895225b28d072a
- https://github.com/Homebrew/homebrew-portable-ruby/releases/download/2.6.8_1/portable-ruby-2.6.8_1.x86_64_linux.bottle.tar.gz
Do not file an issue on GitHub about this; you will need to figure out for
yourself what issue with your internet connection restricts your access to
GitHub (used for Homebrew updates and binary packages).
Error: Failed to install Homebrew Portable Ruby and cannot find another Ruby 2.6.8!
If there's no Homebrew Portable Ruby available for your processor:
- install Ruby 2.6.8 with your system package manager (or rbenv/ruby-build)
- make it first in your PATH
- try again
Failed during: /home/linuxbrew/.linuxbrew/bin/brew update --force --quiet
答案1
已修复,就我而言,此行curl: (23) Failure writing output to destination
,只需删除 curl 并重新安装它!
sudo snap remove curl
sudo apt install curl