【问题标题】:Failed Home-brew install on M1M1 上的 Home-brew 安装失败
【发布时间】:2023-01-20 16:03:22
【问题描述】:

运行后出现此错误:/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

==\> Checking for `sudo` access (which may request your password)...
Password:
==\> This script will install:
/opt/homebrew/bin/brew
/opt/homebrew/share/doc/homebrew
/opt/homebrew/share/man/man1/brew.1
/opt/homebrew/share/zsh/site-functions/\_brew
/opt/homebrew/etc/bash_completion.d/brew
/opt/homebrew

Press RETURN/ENTER to continue or any other key to abort:
==\> /usr/bin/sudo /usr/sbin/chown -R ruby:admin /opt/homebrew
==\> Downloading and installing Homebrew...
HEAD is now at 344d32bf7 Merge pull request #14368 from Kentzo/fix-cask-backup
error: 2535 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
Error: Fetching /opt/homebrew/Library/Taps/homebrew/homebrew-core failed!
Failed during: /opt/homebrew/bin/brew update --force --quiet

我更新了 xcode 并再次尝试安装,但没有成功安装。

【问题讨论】:

    标签: xcode bash terminal homebrew sudo


    【解决方案1】:

    通过运行解决它

    export HOMEBREW_INSTALL_FROM_API=1
    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
    

    请参阅#666 以获取有关如何处理 git 连接问题的帮助

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-08-09
      • 2021-01-20
      • 1970-01-01
      • 2020-07-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多