我试图在MacOS Monterey的Macbook pro Apple M1上安装homebrew
,但在这一步总是失败,如下所示。
HEAD is now at 472edc06e Merge pull request #12943 from Homebrew/update-man-
completions
==> Tapping homebrew/core
remote: Enumerating objects: 1150006, done.
remote: Counting objects: 100% (29/29), done.
remote: Compressing objects: 100% (19/19), done.
error: RPC failed; curl 56 LibreSSL SSL_read: error:06FFF064:digital envelope
routines:CRYPTO_internal:bad decrypt, errno 0
error: 1835 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
Failed during: git fetch --force origin
refs/heads/master:refs/remotes/origin/master
我试着把我的git全局用户名设置成这个
git config --global user.email yourgitemail@example.com
删除自制软件并尝试像这样的新安装
sudo rm -fr /opt/homebrew
增加缓冲区大小
git config --global http.postBuffer 524288000
没有成功。似乎什么都不适合我。
除了您列出的命令外,我还运行以下指令:
git config --global --add remote.origin.proxy ""
git config --global http.sslVerify "false"
在运行sudo rm -fr /opt/homebrew
之后(为了清理之前的尝试(,我让它正常工作。