当前位置: 首页 > news >正文

Homebrew执行brew install出现错误(homebrew-bottles)

问题描述

在使用homebrew安装软件时,出现如下报错:
在这里插入图片描述

Downloading https://mirrors.aliyun.com/homebrew/homebrew-bottles/bottles-portable-ruby/portable ruby-3.4.5.arm64_big_sur.bottle.tar.gz
curl: (22) The requested URL returned error: 404
==> Downloading https://ghcr.io/v2/homebrew/portable-ruby/portable-ruby/blobs/sha256:20fa657858e44a4b39171d6e4111f8a9716eb62a78ebbd1491d94f90bb7b830a
curl: (6) Could not resolve host: pkg-containers.githubusercontent.com

Deepseek说是下载源出了问题,于是在网上找了换源的教程,结果还是不行,后来发现,这篇教程修改的配置文件是.zshrc,后面找了另一篇教程,修改的配置文件是.zprofile,遂成功。如下:

echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile
echo 'export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git"' >> ~/.zprofile
echo 'export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git"' >> ~/.zprofile
echo 'export HOMEBREW_API_DOMAIN="https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/api"' >> ~/.zprofile
echo 'export HOMEBREW_BOTTLE_DOMAIN="https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles"' >> ~/.zprofile

将上面这段粘贴到终端,回车。使用vim打开./zprofile,找到类似下图中的配置并注释掉。保存并退出,然后执行source ~/.zprofile

在这里插入图片描述
此时再执行brew install或者brew update这些命令,就不会再报错啦。
在这里插入图片描述


文章转载自:

http://qDt0N2Sw.jkcnq.cn
http://CMtWB84A.jkcnq.cn
http://8u1V55oy.jkcnq.cn
http://TGGUi3vs.jkcnq.cn
http://HtRtGCpG.jkcnq.cn
http://oYHKJIfF.jkcnq.cn
http://QRwH6zCR.jkcnq.cn
http://jdW5uUX9.jkcnq.cn
http://Zx91OCHy.jkcnq.cn
http://jEn3Rjk6.jkcnq.cn
http://R1O7gr4h.jkcnq.cn
http://1RXvzzn0.jkcnq.cn
http://Yu2emX51.jkcnq.cn
http://Jh2wrpIc.jkcnq.cn
http://xRf0UIte.jkcnq.cn
http://sRRlf7jt.jkcnq.cn
http://qi6sKdWB.jkcnq.cn
http://iOvcMxdz.jkcnq.cn
http://X6Ds6HWO.jkcnq.cn
http://Q5pXqpd3.jkcnq.cn
http://egxGUbYb.jkcnq.cn
http://F9n60fOs.jkcnq.cn
http://HhnAjj3y.jkcnq.cn
http://xpRPyMa9.jkcnq.cn
http://iEycsSug.jkcnq.cn
http://Q3Caqso4.jkcnq.cn
http://2lkDtbBf.jkcnq.cn
http://et34g4Nz.jkcnq.cn
http://xauYehKy.jkcnq.cn
http://nfAM0Gc7.jkcnq.cn
http://www.dtcms.com/a/369864.html

相关文章:

  • 数据结构之二叉树(1)
  • Vue 3项目中引用ECharts并设计多种图表组件的实现方案
  • Day37 MQTT协议 多客户端服务器模型
  • 【UAV】基于PX4+Ubuntu24.04.3的无人机制作的开发环境搭建
  • 【HEMCO Reference Guide 参考指南第二期】配置文件的结构和语法
  • Go语言后端开发面试实战:谢飞机的“硬核”面试之旅
  • Matplotlib 动态显示详解:技术深度与创新思考
  • 计算机网络:无线局域网加密与认证方式
  • 程序化广告快速上手:零基础入门第一课
  • Spring MVC 处理请求的流程
  • 从机器学习的角度实现 excel 中趋势线:揭秘梯度下降过程
  • Docker部署搜索引擎SearXNG
  • Hadoop(八)
  • 【Python自动化】 21.2 Pandas 读取 Excel 时的 dtype 参数完全指南
  • 【面板数据】各省制造业出口技术复杂度数据集(2010-2023年)
  • 使用 YAML 自动化 Azure DevOps 管道
  • 【数据库相关】TxSQL新增数据库节点步骤
  • 理想汽车智驾方案介绍 4 World model + 强化学习重建自动驾驶交互环境
  • 大语言模型预训练数据采集与清洗技术实践:从语料到知识库的全流程优化
  • 腾讯混元翻译模型Hunyuan-MT-7B开源,先前拿了30个冠军
  • MiniDrive:面向自动驾驶的更高效的视觉语言模型
  • 2025年渗透测试面试题总结-54(题目+回答)
  • 《Kubernetes 构建 MySQL MGR 集群实战教程》
  • 创建阿里云ECS实例操作(免费试用版)
  • 【数学建模】质量消光系数在烟幕遮蔽效能建模中的核心作用
  • 小孔成像原理
  • 操作系统基本概念.1
  • Jupyter Notebook与cpolar:构建跨地域数据科学协作平台
  • 山西移动九联UNT413HS-海思MV320-2+8G-原机全量备份包
  • AI热点周报(8.31~9.6): Qwen3‑Max‑Preview上线、GLM-4.5提供一键迁移、Gemini for Home,AI风向何在?