homebrew – chown: /usr/local: Operation not permitted – issue with brew update /usr/local is not writable – MacOS 10.13.1 high sierra

homebrew – chown: /usr/local: Operation not permitted – issue with brew update /usr/local is not writable – MacOS 10.13.1 high sierra

Reinstalling Homebrew worked for me

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

You may want to try:

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

For more see: https://github.com/Homebrew/brew/issues/3228

homebrew – chown: /usr/local: Operation not permitted – issue with brew update /usr/local is not writable – MacOS 10.13.1 high sierra

Apparently this is due to macs system integrity configuration. To get around this you need to reboot your machine into recovery mode (restart your machine and hold down ⌘+R) go into Utilities > Terminal and type the command:

csrutil disable
reboot

And then run your chown command. I guess its recommended to reenable this after changing permissions to re-enable the security.

Full disclosure, I havent tried this myself – Ill give it a go later today since its a massive PITA. For the record, Im only attempting to install python3.

Original information

Leave a Reply

Your email address will not be published.