MacOS HomeBrew 更新遇到的问题解决

问题

brew update 遇到错误, 错误信息如下:

script
1
2
3
4
5
6
7
Updating Homebrew...
Warning: You are using macOS 10.15.
We do not provide support for this pre-release version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Discourse, Twitter or IRC. You are responsible for resolving any issues you
experience, as you are running this pre-release version.

解决方式

  1. brew doctor

运行后发现源为科大的源, 于是切换回原来的官方的 brew 源

script
1
2
cd "$(brew --repo)"
git remote set-url origin https://github.com/Homebrew/brew.git

有其他问题,建议按照提示一一解决掉

  1. brew update

更新成功

  1. brew config

查看配置

文章目录
  1. 1. 问题
  2. 2. 解决方式
|