【问题标题】:Error installing Homebrew "unexpected disconnect while reading sideband packet"读取边带数据包时安装 HomeBrew 意外断开连接时出错
【发布时间】:2022-01-15 02:42:18
【问题描述】:

尝试使用命令/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" 在 M1 Mac Mini 上安装自制软件,就像文档中一样。

然后中途出现这个错误

==> Tapping homebrew/core
remote: Enumerating objects: 1107077, done.
remote: Counting objects: 100% (228/228), done.
remote: Compressing objects: 100% (157/157), done.
error: 545 bytes of body are still expected.44 MiB | 341.00 KiB/s
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: index-pack failed
Failed during: git fetch --force origin refs/heads/master:refs/remotes/origin/master
myuser~ % 

不知道为什么,

【问题讨论】:

  • 添加 github 标签(因为这更与 github 相关)

标签: macos github homebrew


【解决方案1】:

这更多的是 github checkout 问题而不是 Homebrew 问题,checkout this suggestion:

这可能是您的网络问题。如果网络太慢,可能会意外断开连接。

如果您有良好的互联网并且仍然收到此消息,则可能是发布缓冲区的问题。您可以通过在您的cmd中执行以下命令来解决它。

git config --global http.postBuffer 157286400

【讨论】:

    猜你喜欢
    • 2021-05-27
    • 1970-01-01
    • 2022-08-05
    • 2013-11-01
    • 2017-12-05
    • 2014-07-14
    • 1970-01-01
    • 2014-12-05
    • 1970-01-01
    相关资源
    最近更新 更多