Returns 更新 Homebrew 时出错

Returns an error when updating my Homebrew

我正在尝试使用 brew update 更新我的 Homebrew,但 returns 出现以下错误:

fatal: 'origin' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: 'origin' does not appear to be a git repository
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/jonj/homebrew-old-openssl failed!
fatal: 'origin/master' is not a commit and a branch 'master' cannot be created from it
fatal: invalid upstream 'origin/master'
Error: Fetching /usr/local/Homebrew/Library/Taps/jonj/homebrew-old-openssl failed!

当你 brew tap <user>/<repo> 时,Homebrew 会默认将 github.com/<user>/homebrew-<repo> 克隆到你的 Taps 目录中,参见例如the docs,

在这种情况下,您在某个时候做了 brew tap jonj/old-openssl,但 that repo 不再公开存在(当前为 404)。要删除它,您可以 运行 brew untap jonj/old-openssl.