brew 安装出现Checksum mismatch解决方法

用brew 安装APP出现Error: Checksum mismatch.说明下载的文件和期望的hashCode对不上,删掉对应的文件就行了

==> Downloading https://homebrew.bintray.com/bottles-portable-ruby/portable-ruby--2.6.3.mavericks.bottle.tar.gz
Already downloaded: /Users/liuxiangfei/Library/Caches/Homebrew/portable-ruby--2.6.3.mavericks.bottle.tar.gz
Error: Checksum mismatch.
Expected: ab81211a2052ccaa6d050741c433b728d0641523d8742eef23a5b450811e5104
  Actual: 89eccced7a359bb07ecc6c613c4383f1d085cc6c980f5a7361752b3ed98b8625
 Archive: /Users/liuxiangfei/Library/Caches/Homebrew/portable-ruby--2.6.3.mavericks.bottle.tar.gz
To retry an incomplete download, remove the file above.

删除对应文件,然后重新执行brew安装脚本

rm /Users/liuxiangfei/Library/Caches/Homebrew/portable-ruby--2.6.3.mavericks.bottle.tar.gz

猜你喜欢

转载自blog.csdn.net/m819177045/article/details/102794784