【MAC】brew命令Homebrew命令Error: Checksum mismatch.

【MAC】brew命令Homebrew命令Error: Checksum mismatch._第1张图片

Downloading https://ghcr.io/v2/homebrew/portable-ruby/portable-ruby/blobs/sha256:1f50bf80583bd436c9542d4fa5ad47df0ef0f0bea22ae710c4f04c42d7560bca
Already downloaded: /Users/用户名/Library/Caches/Homebrew/portable-ruby-2.6.8_1.el_capitan.bottle.tar.gz
Error: Checksum mismatch.
Expected: 1f50bf80583bd436c9542d4fa5ad47df0ef0f0bea22ae710c4f04c42d7560bca
 Actual: 6bdfab83fe60fc3de4f85a2698bb98bcd472b0b074dd24d9b97cdc9bd1fc8f9b
 Archive: /Users/用户名/Library/Caches/Homebrew/portable-ruby-2.6.8_1.el_capitan.bottle.tar.gz
To retry an incomplete download, remove the file above.
Error: Failed to upgrade Homebrew Portable Ruby!

执行brew search redis时候报错,看了一下报错

报错原因:portable-ruby-2.6.8_1.el_capitan.bottle.tar.gz 这个文件校验不匹配,Homebrew升级失败。

解决方案:可以看到提示让我们To retry an incomplete download, remove the file above.

删除上面这个portable-ruby-2.6.8_1.el_capitan.bottle.tar.gz文件。

rm -rf /Users/自己的用户名/Library/Caches/Homebrew/portable-ruby-2.6.8_1.el_capitan.bottle.tar.gz

删除后在去获取redis版本和下载就没问题了。

【MAC】brew命令Homebrew命令Error: Checksum mismatch._第2张图片

 

你可能感兴趣的:(Java问题解决,后端,redis,Mac,linux)