【mac】[brew]Failed to upgrade Homebrew Portable Ruby

brew 安装或者升级失败

Error: Fetching /usr/local/Homebrew/Library/Taps/elastic/homebrew-tap failed!
==> Downloading https://ghcr.io/v2/homebrew/portable-ruby/portable-ruby/blobs/sha256:1f50bf80583bd436c9542d4fa5ad47df0ef0f0bea22ae710c4f04c42d7560bca
Already downloaded: /Users/XXXX/Library/Caches/Homebrew/portable-ruby-2.6.8_1.el_capitan.bottle.tar.gz
Error: Checksum mismatch.
Expected: 1f50bf80583bd436c9542d4fa5ad47df0ef0f0bea22ae710c4f04c42d7560bca
  Actual: 3898850d206d8bd0e9cf922fcbd2fae8674cabec070fe547b90fd8505b2df6e4
 Archive: /Users/XXXXX/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!

解决方案:rm -rf 指定删除文件

rm -rf /Users/XXXXX/Library/Caches/Homebrew/portable-ruby-2.6.8_1.el_capitan.bottle.tar.gz

再次执行

brew upgrade 或
brew update 

你可能感兴趣的:(mac,macos)