macOS Sierra 10.12:自制罐';t brew升级警告:我们不支持此预发布版本
昨天我升级macOS Sierra,在我编写upgade时出现错误:macOS Sierra 10.12:自制罐';t brew升级警告:我们不支持此预发布版本,macos,homebrew,macos-sierra,Macos,Homebrew,Macos Sierra,昨天我升级macOS Sierra,在我编写upgade时出现错误: Warning: You are using OS X 10.12. We do not provide support for this pre-release version. You may encounter build failures or other breakages. Please create pull-requests instead of filing issue
Warning: You are using OS X 10.12.
We do not provide support for this pre-release version.
You may encounter build failures or other breakages.
Please create pull-requests instead of filing issues.
我花了很长时间寻找解决这个问题的方法
例如:
或:
然后重新启动操作系统,仍然存在这个问题
/usr/local已存在,可以写入
所以,我不使用brew升级,请帮助,我有很长时间不能使用它。我也有同样的问题。这对我很有用: 转到终端,键入这些命令,将whoami更改为您的用户名
sudo chown -R $(whoami) /usr/local
xcode-select --install
您将授予/usr/local
的写入权限,还将从Apple下载并安装命令行开发工具,可能需要1~2分钟
如果您看到这样的错误,请尝试运行升级:Homebrew:error:update report不应直接调用
brew upgrade
现在进行更新
brew update
最后你会看到:
Homebrew no longer needs to have ownership of /usr/local. If you wish
you can return /usr/local to its default ownership with: sudo chown
root:wheel /usr/local
就这么做吧:
sudo chown root:wheel /usr/local
在尝试了所有其他方法之后,下面的代码块终于为我做到了
cd "$(brew --repo)" && git fetch && git reset --hard origin/master && brew update
此代码来自brew自述文件。运行之后,这就是我得到的
==> Migrating HOMEBREW_REPOSITORY (please wait)...
Error: /usr/local/Homebrew already exists.
Please remove it manually or uninstall and reinstall Homebrew into a new
location as the migration cannot be done automatically.
我忽略了最后的错误消息,继续
MacDePadre:local arick$ brew upgrade
我有很多库需要更新,所以花了很长时间,但这似乎解决了问题。您只需升级到自制1.0.0(1.1.0或1.2.0)。转到
brew.sh
并按照说明操作。安装自制软件。macOS缺少包管理器。
这解决了我的问题
步骤:
1.打开终端
2.粘贴下面的行
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
3.点击返回(它将自己完成所有流程。
我希望这能对你有所帮助。这对我很有用:
sudo xcode-select -r
Edit and set the date of your Mac as October 1st, 2019
sudo xcodebuild -runFirstLaunch
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
brew upgrade
也许您被记录在案的升级问题所困扰?您是否查看了brew自述文件?否则,您是否运行了
brew doctor
?谢谢,您描述的步骤解决了我的安装中的问题。这不是一个好的或有用的反馈。我们应该注意许多人迷失了方向,他们很难找到问题的答案。我在这个问题上有点技巧,但它仍然是开放的。
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
sudo xcode-select -r
Edit and set the date of your Mac as October 1st, 2019
sudo xcodebuild -runFirstLaunch
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
brew upgrade