SHA1 error when using brew install

邮差的信 提交于 2019-12-18 10:21:29

问题


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

回答1:


Everything worked after I ran brew update.




回答2:


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



回答3:


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




回答4:


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.



来源:https://stackoverflow.com/questions/9857629/sha1-error-when-using-brew-install

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!