Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Homebrew in OS X 10.9.2: Error: SHA256 mismatch

Tags:

shell

homebrew

brew install php55
==> Downloading http://www.php.net/get/php-5.5.11.tar.bz2/from/this/mirror
######################################################################## 100.0%
Error: SHA256 mismatch
Expected: 60e14c255f2a461a7a26639b84a2fc448cc2f91c8dead0e9fd00cd8ba27a2e96
Actual: 0d9438c2557db5809f4232148ca1567516e7ece9bf8726853ceac4a111cb8690
Archive: /Library/Caches/Homebrew/php55-5.5.11
To retry an incomplete download, remove the file above.

I tried

brew cleanup && brew update

but not worked

like image 574
WildCat Avatar asked Apr 24 '14 15:04

WildCat


2 Answers

I had the same problem with MongoDb. I was able to fix it first I changed the permission to admin.

Then I ran

brew cleanup && brew update

After that I ran

brew install mongodb 

and it worked like a charm

like image 88
James N Avatar answered Sep 25 '22 21:09

James N


I also tried brew cleanup and brew update but still got the same issue so i did this

brew edit <application>

and replaced sha256 value with actual value shown in error msg.

and this worked out for me, hope it helps you too.

like image 33
ankitkhandelwal185 Avatar answered Sep 25 '22 21:09

ankitkhandelwal185