使用brew install时出现SHA1错误

问题描述 投票:0回答:4

更具体地说,我使用自制程序安装 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.)
homebrew
4个回答
136
投票

运行后一切正常

brew update


8
投票

如果brew更新失败,请尝试以下方法

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

1
投票

就我而言,从 https://downloads.sourceforge.net/ctags/ctags-5.8.tar.gz 下载的文件实际上是一个 html 文件。我下载了真实的文件并将其放在

/Library/Caches/Homebrew/ctags-5.8.tar.gz
。然后我运行
brew install ctags
,一切正常。


1
投票

我和 Steve S 遇到了同样的问题,关于 epstool 对 Octave 的依赖,并找到了这个链接:

https://web.archive.org/web/20190629035144/https://github.com/Homebrew/homebrew-science/issues/1110

查看 iml 的帖子,从顶部往下 10 左右(他的第二篇帖子)。正如他所解释的,我从 fedoraproject.org 网站下载了它,然后将其移动到 /Library/Caches/Homebrew/ 目录中。

© www.soinside.com 2019 - 2024. All rights reserved.