Mac使用brew安装软件报错

在使用brew安装软件时报错Failed to upgrade Homebrew Portable Ruby!

复制代码
brew install --cask --appdir=/Applications docker
==> Downloading https://ghcr.io/v2/homebrew/portable-ruby/portable-ruby/blobs/sha256:0cb1cc7af109437fe0e020c9f3b7b95c3c709b140bde9f991ad2c1433496dd42
Already downloaded: /Users/zhanghe/Library/Caches/Homebrew/portable-ruby-2.6.8.yosemite.bottle.tar.gz
Error: Checksum mismatch.
Expected: 0cb1cc7af109437fe0e020c9f3b7b95c3c709b140bde9f991ad2c1433496dd42
  Actual: f3d9a51cb325eb9fb4cf098821c11cc7299cda637fb5e4c23a846a7390c305cd
 Archive: /Users/zhanghe/Library/Caches/Homebrew/portable-ruby-2.6.8.yosemite.bottle.tar.gz
To retry an incomplete download, remove the file above.
Error: Failed to upgrade Homebrew Portable Ruby!

将已存在的文件删除掉即可

复制代码
rm -rf /Users/zhanghe/Library/Caches/Homebrew/portable-ruby-2.6.8.yosemite.bottle.tar.gz

https://zhhll.icu/2020/Mac/brew使用失败/

本文由mdnice多平台发布

相关推荐
逍遥德20 小时前
如何学编程之01.理论篇.如何通过阅读代码来提高自己的编程能力?
前端·后端·程序人生·重构·软件构建·代码规范
程序员agions21 小时前
2026年,“配置工程师“终于死绝了
前端·程序人生
chaser&upper1 天前
矩阵革命:在 AtomGit 解码 CANN ops-nn 如何构建 AIGC 的“线性基石”
程序人生·算法
愚者游世1 天前
Delegating Constructor(委托构造函数)各版本异同
开发语言·c++·程序人生·面试·改行学it
郝学胜-神的一滴1 天前
Python 列表 vs 数组:深入解析与最佳选择指南
开发语言·python·程序人生
郝学胜-神的一滴2 天前
Python美学的三重奏:深入浅出列表、字典与生成器推导式
开发语言·网络·数据结构·windows·python·程序人生·算法
郝学胜-神的一滴2 天前
Linux网络编程中的connect函数:深入探索网络连接的基石
linux·服务器·网络·c++·websocket·程序人生
chaser&upper2 天前
手机控电脑全维度实测对比
程序人生
Byron Loong2 天前
【思考】第一性原理是什么
程序人生
JustDI-CM2 天前
随笔-关于AI的小感受
程序人生