Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SHA1 error when using brew install

Tags:

homebrew

More specifically, I was using homebrew to install MySQL, and I got this error:

Error: SHA1 mismatch   Expected: f218ed64ce6e7a5d3670acdd6a18e5ed95421d1f   Got: 3a57f6f44186e0dba34ef8b8fb4a9047e9e5d8a3   Archive: /Users/rdp/Library/Caches/Homebrew/cmake-2.8.7.bottle.tar.gz   (To retry an incomplete download, remove the file above.) 
like image 909
Rose Perrone Avatar asked Mar 25 '12 03:03

Rose Perrone


2 Answers

Everything worked after I ran brew update.

like image 114
Rose Perrone Avatar answered Sep 21 '22 00:09

Rose Perrone


Incase the brew update fails, try the following

cd `brew --prefix` git remote add origin https://github.com/Homebrew/homebrew git fetch origin git reset --hard origin/master 
like image 42
Dayson Avatar answered Sep 17 '22 00:09

Dayson