???@Chris-MBP homebrew-core % git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask fetch --unshallow remote: Counting objects: 356812, done. remote: Compressing objects: 100% (106828/106828), done. Receiving objects: 45% (161508/356812), 57.73 MiB | 116.00 KiB/s
homebrew 要 update 但是提示要执行 git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask fetch --unshallow
不太懂,这是在干嘛 关键是 每次都是失败的这个命令
1
mycang OP 执行完成之后久是这个样子
git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask fetch --unshallow remote: Counting objects: 356812, done. remote: Compressing objects: 100% (106828/106828), done. 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 还是不能 update |
2
superrichman 2021-02-07 12:23:15 +08:00 via iPhone
挂代理试试
|
3
1002xin 2021-02-07 12:23:21 +08:00
CLT 版本太低了吧
|
4
goalidea 2021-02-07 12:23:44 +08:00
|
5
MrBrand 2021-02-07 12:44:01 +08:00
在 .bash_profile 里面加上 export HOMEBREW_NO_AUTO_UPDATE=true,禁止每次都去更新
|
6
MrBrand 2021-02-07 12:45:20 +08:00
如果你用的 ohmyzsh,就加在.zshrc 文件里面,
|
7
triple7 2021-02-07 12:56:16 +08:00
应该是你一开始是通过 shadow 方式检出的问题。你可以参考这篇文章设置镜像 https://brew.idayer.com/guide/start#%E4%B8%AD%E7%A7%91%E5%A4%A7%E6%BA%90
如果设置镜像不行,可以尝试重新安装下,brew.idayer.com 也有对应的说明。 如果你想用代理或者有代理,可以给终端设置下代理,端口号在代理软件中查看。 export proxy="http://127.0.0.1:1080" export http_proxy=$proxy export https_proxy=$proxy |