【发布时间】:2020-02-05 04:34:32
【问题描述】:
我无法安装自制软件。
我尝试过的方法:
- 更改 http_proxy 值 `export http_proxy=http://127.0.0.1:10818;export https_proxy=http://127.0.0.1:10818;
-
提高 postBuffer 值
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
【问题讨论】:
-
删除您的
/usr/local/Homebrew并重试 -
@Bigman 在我再次重新安装 brew 之前已将其删除。有趣的是,我只是通过这个脚本
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"而不是/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"再次尝试了它。 -
@KailiC 它对我有用:D
-
我遇到了同样的问题,和你一样,我在命令开始时将
/bin/bash更改为bash并且它起作用了
标签: git homebrew macos-big-sur