解决方法
删除homebrew-core后更新即可
cd /usr/local/Homebrew/Library/Taps/homebrew rm -rf homebrew-core brew upgrade