xcode M1上的自制安装失败

dm7nw8vv  于 2023-01-21  发布在  其他
关注(0)|答案(1)|浏览(453)

我在运行/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并再次尝试安装,但没有成功安装。

bogh5gae

bogh5gae1#

通过运行以下命令解决了此问题

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

有关如何处理git连接问题的帮助,请参见#666

相关问题