homebrew 不能update解决方法

mac已经在低版本安装homebrew后升级到OSX 10.13 High Sierra后无法brew update问题解决方案

The problem kept occurring... after digging deeper I found that only uninstalling Homebrew and then re-installing it solved this issue.

Uninstall Homebrew:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"

Then re-install it:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

再次brew update则提示

Already up-to-date.即可解决

PS:

1、Unfortunately you can no longer chown /usr/local in High Sierra. A workaround is to sudo mkdir /usr/local/include and /usr/local/Frameworks if they don't exist, and

sudo chown -R $(whoami) $(brew --prefix)/*

猜你喜欢

转载自my.oschina.net/zhaky/blog/1625286