原始brew更新错误需要运行gitfetch--unllow,但又得到了一个致命的git


$ 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

我尝试运行以上命令:git ... --unshallow但我又犯了一个错误:

fatal: dumb http transport does not support shallow capabilities
$ brew -v
Homebrew 2.6.0-104-g24f7898
Homebrew/homebrew-core (git revision b1ef15; last commit 2020-12-05)
Homebrew/homebrew-cask (git revision 443e7; last commit 2020-08-27)

有人能帮忙吗?

我在尝试处理git repo后挖了一点,但对我来说,最简单的修复方法是取消映射,然后重新映射木桶repo

brew untap homebrew/cask
brew tap homebrew/cask

这让一切恢复了秩序。

我最近没有RTFM,但我猜这与木桶似乎正在进入主要的自制软件回购有关(或者至少作为一个天真的用户来说是这样(。

我尝试运行:$ git -C "/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core" fetch

那么:$ git -C "/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core" fetch --unshallow

brew update现在看起来还可以。

在我的情况下,我得到了这个

$ brew update
ERROR: Repository not found.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Error: Fetching /usr/local/Homebrew/Library/Taps/myf/homebrew-formulas failed!

请注意最后一行中的myf/homebrew公式。这是我的一个旧的回购无法再访问。

我用解决了这个问题

$ brew untap myf/homebrew-formulas
Untapping myf/formulas...
Untapped 5 formulae (37 files, 63KB).

我尝试过的其他命令

$ brew upgrade
$ brew update-reset
$ brew doctor

我用解决了这个问题

cd /usr/local/Homebrew/Library/Taps/homebrew
rm -rf homebrew-core
rm -rf homebrew-cask
brew upgrade

最新更新