Homebrew 的致命 : early EOF

标签 homebrew

嗨,我正在尝试安装 Homebrew (MacOS Catalina)
在他们的官方网页上运行命令后,我收到以下错误。

在此先感谢您的帮助。

Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core'...
remote: Enumerating objects: 9, done.
remote: Counting objects: 100% (9/9), done.
remote: Compressing objects: 100% (9/9), done.
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
Error: Failure while executing; `git clone https://github.com/Homebrew/homebrew-core /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core` exited with 128.
Error: Failure while executing; `/usr/local/bin/brew tap homebrew/core` exited with 1.
Failed during: /usr/local/bin/brew update --force```

最佳答案

我在使用 mac M1 big sur 时遇到了问题。
以上是一个很大的帮助。谢谢

  1. sudo ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"

  2. ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

then it failed.

  1. cd /opt/homebrew/library/taps/homebrew

  2. sudo rmdir homebrew-core

  3. git clone https://github.com/Homebrew/homebrew-core /opt/Homebrew/Library/Taps/homebrew/homebrew-core --depth=1


我也在浏览器上登录 github 不确定这是否重要

关于 Homebrew 的致命 : early EOF,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60495344/

相关文章:

homebrew - "brew link"有什么作用?

gcc - Homebrew 公式中的替代依赖项(例如用于 gcc)

python - 不小心使用 homebrew 将我的默认 python 更改为 3.7,如何将其更改回 2.7?

git - 更新 git 时出现 Homebrew 错误

macos - OSX - 为 Tesseract 4.0 编译训练工具 - 未找到 pango 库

python - brew install freetds --with-unixodbc 失败

python - 如何在同一台计算机上安装常规 python(通过 Homebrew 软件)和 miniconda?

macos - 在 OSX : LIBFFI not found 上编译 clisp-2.49

php - Mac M1 无法将 PHP 8.0 映射为 PhpStorm 中的 CLI 解释器

ruby - 使用brew安装非常旧的版本