error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 60

使用HomeBrew官网提供的安装命令/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)",遇到如下错误

remote: Enumerating objects: 55, done.
remote: Counting objects: 100% (55/55), done.
remote: Compressing objects: 100% (54/54), 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 --force

我的解决方式:

  1. 首先换一个网络较好的网,不要卡的或慢的。
  2. 把梯子退掉。
  3. 换成国内的源,使用这个命令进行重新安装/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
  4. 选择一个源,我选的中科大。稍等片刻,几分钟不到吧。
  5. 出现这些提示说明安装成功。
     
    安装成功

原文来自


原文地址:https://www.cnblogs.com/shanghongyun/p/14201489.html