When homebrew update fails

For archival and reference purposes:

cd $(brew –prefix)
rm Library/Formula/argp-standalone.rb
rm Library/Formula/cocot.rb

git fetch origin
git reset –hard origin/master
brew update

Note: You might need to do it with “sudo”

Leave a Reply

Your email address will not be published. Required fields are marked *