SHA1 error when using brew install

Homebrew

Homebrew Problem Overview


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.)

Homebrew Solutions


Solution 1 - Homebrew

Everything worked after I ran brew update.

Solution 2 - Homebrew

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

Solution 3 - Homebrew

I was having the same problem as Steve S regarding epstool dependency on Octave and found this link:

https://github.com/Homebrew/homebrew-science/issues/1110

Check out iml's post about 10 down from the top (his second post). As he explained, I downloaded it from the fedoraproject.org site and then moved it into the /Library/Caches/Homebrew/ directory.

Cheers,

-Maashu

Solution 4 - Homebrew

In my case the file downloaded from https://downloads.sourceforge.net/ctags/ctags-5.8.tar.gz is actually a html file. I downloaded the real file and place it at /Library/Caches/Homebrew/ctags-5.8.tar.gz. Then I run brew install ctags, everything works.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionRose PerroneView Question on Stackoverflow
Solution 1 - HomebrewRose PerroneView Answer on Stackoverflow
Solution 2 - HomebrewDaysonView Answer on Stackoverflow
Solution 3 - HomebrewMaashuView Answer on Stackoverflow
Solution 4 - HomebrewZitao XiongView Answer on Stackoverflow