当我尝试更新(或升级brew)时,会出现以下错误:
我使用的是macOS Big Sur V11.2.3操作系统,并且安装了BitDefender杀毒软件。我曾尝试关闭杀毒软件并运行上述命令,但没有成功。如有帮助将不胜感激。
#> brew update
Error:
homebrew-core is a shallow clone.
To `brew update`, first run:
git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow
This command may take a few minutes to run due to the large size of the repository.
This restriction has been made on GitHub's request because updating shallow
clones is an extremely expensive operation due to the tree layout and traffic of
Homebrew/homebrew-core and Homebrew/homebrew-cask. We don't do this for you
automatically to avoid repeatedly performing an expensive unshallow operation in
CI systems (which should instead be fixed to not use shallow clones). Sorry for
the inconvenience!
当我运行指定的命令时,我收到另一个错误:
#> git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow
fatal: protocol error: bad pack header
我使用的是macOS Big Sur V11.2.3操作系统,并且安装了BitDefender杀毒软件。我曾尝试关闭杀毒软件并运行上述命令,但没有成功。如有帮助将不胜感激。