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多平台发布

相关推荐
NE_STOP9 天前
Vibe Coding -- Claude Code 的核心配置与常用命令
程序人生
郝学胜-神的一滴16 天前
Python 高级编程 020:属性查找全解析
开发语言·人工智能·python·程序人生
郝学胜-神的一滴16 天前
CMake 019:程序生成与清理全解析
开发语言·c++·qt·程序人生·软件构建·cmake
旧曲重听116 天前
2026前端技术从「夯」到「拉」
前端·程序人生·职场和发展·软件工程
CoderYanger16 天前
A.每日一题:2095. 删除链表的中间节点
java·数据结构·程序人生·leetcode·链表·面试·职场和发展
CoderYanger16 天前
A.每日一题:234. 回文链表
数据结构·程序人生·leetcode·链表·面试·职场和发展·学习方法
CoderYanger16 天前
A.每日一题:3612. 用特殊操作处理字符串 I
java·程序人生·leetcode·面试·职场和发展·学习方法·改行学it
CoderYanger16 天前
A.每日一题:144题+145题 二叉树的前序遍历+后序遍历
java·程序人生·leetcode·面试·职场和发展·学习方法·改行学it
NE_STOP17 天前
Vibe Coding--初识AI编程
程序人生
这个DBA有点耶17 天前
国产数据库有哪些?2026年主流产品选型对比
数据库·程序人生·职场和发展·架构·程序员创富·改行学it