使用brew install时出现SHA1错误


75

更具体地说,我使用自制软件安装MySQL,但出现此错误:

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

Answers:


135

我跑步后一切正常brew update


@RosePerrone:如果brew update 不起作用怎么办?[我正在尝试重新安装Octave,但不能这样做,因为epstool依赖项吐出了相同的错误消息] ...
Steve S

8

如果brew更新失败,请尝试以下操作

cd `brew --prefix`
git remote add origin https://github.com/Homebrew/homebrew
git fetch origin
git reset --hard origin/master

git remote add origin https://github.com/Homebrew/brew.git fatal: Not a git repository (or any of the parent directories): .git
anon58192932 '01 -10-11

1

关于Eptool对Octave的依赖性,我遇到了与Steve S相同的问题,并找到了以下链接:

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

从顶部大约10处查看iml的帖子(他的第二篇帖子)。正如他解释的那样,我从fedoraproject.org网站下载了该文件,然后将其移至/ Library / Caches / Homebrew /目录。

干杯,

-马舒


By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.