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版本和下载就没问题了。

 

GitHub 加速计划 / br / brew
40.41 K
9.47 K
下载
🍺 The missing package manager for macOS (or Linux)
最近提交(Master分支:1 个月前 )
90a90b30 3 个月前
47b1cab7 3 个月前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐