我无法安装 Homebrew 软件。
我试过的方法:
git config --global http.postBuffer 5242880000
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
而不是 /usr/bin/ruby -e "$(curl -fsSL...
有效。谁能解释为什么它有效?感谢 终端不断显示此消息
==> Downloading and installing Homebrew...
remote: Enumerating objects: 22, done.
remote: Counting objects: 100% (22/22), done.
remote: Compressing objects: 100% (16/16), done.
error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 60
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
Failed during: git fetch origin master:refs/remotes/origin/master --tags --force
最佳答案
我遇到了同样的问题,我认为我们有同样的问题,当我安装 homebrew/core 时它总是中断:
error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno
54 fatal: the remote end hung up unexpectedly fatal: early EOF fatal:
index-pack failed Failed during: git fetch --force origin
refs/heads/master:refs/remotes/origin/master
我使用这些资源来解决问题Homebrew install: Failed during: git fetch origin master:refs/remotes/origin/master -n --depth=1
https://www.programmersought.com/article/74365494100/
我的步骤:
(放入脚本并运行,因为您可能需要多次执行,就像我一样:/)
==> 此脚本将安装:
/usr/local/bin/brew
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
/usr/local/Homebrew
git config --global user.email yourgitemail@example.com
git 配置 --global http.postBuffer 5242880000
git config --globle http.sslVerify "false"
然后一切正常并开始下载。我没有坏,但花了很长时间......我记得离开我的 MacBook Pro 并在很长时间后回来,它仍在转移......我希望我能提供帮助。
我花了一整天来解决它,但如果您需要更多帮助,这两个链接包含所有详细信息。
关于git - Homebrew 软件安装错误在 : git fetch origin master:refs/remotes/origin/master --tags --force 期间失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60069083/