mac系统升级后Homebrew:Mac os 使用brew工具时报错No remote ‘origin‘

ops/2024/12/27 22:07:06/
  1. 现象
#brew update
Warning: No remote 'origin' in /opt/homebrew/Library/Taps/homebrew/homebrew-cask, skipping update!
Warning: No remote 'origin' in /opt/homebrew/Library/Taps/homebrew/homebrew-core, skipping update!
Warning: No remote 'origin' in /opt/homebrew/Library/Taps/homebrew/homebrew-services, skipping update!
Already up-to-date.

解决办法:

#brew doctor
Please note that these warnings are just used to help the Homebrew maintainers with debugging if you file an issue. If everything you use Homebrew for is working fine: please don't worry or file an issue; just ignore this. Thanks!Warning: Suspicious https://github.com/Homebrew/brew git origin remote found.
The current git origin is:https://mirrors.ustc.edu.cn/brew.gitWith a non-standard origin, Homebrew won't update properly.
You can solve this by setting the origin remote:git -C "/opt/homebrew" remote set-url origin https://github.com/Homebrew/brewWarning: Homebrew/homebrew-cask was not tapped properly! Run:rm -rf "/opt/homebrew/Library/Taps/homebrew/homebrew-cask"brew tap homebrew/caskWarning: Homebrew/homebrew-core was not tapped properly! Run:rm -rf "/opt/homebrew/Library/Taps/homebrew/homebrew-core"brew tap homebrew/core

根据提示输入

#rm -rf "/opt/homebrew/Library/Taps/homebrew/homebrew-cask"
#brew tap homebrew/cask==> Tapping homebrew/cask
Cloning into '/opt/homebrew/Library/Taps/homebrew/homebrew-cask'...
remote: Enumerating objects: 637993, done.
remote: Counting objects: 100% (12/12), done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 637993 (delta 4), reused 9 (delta 4), pack-reused 637981
Receiving objects: 100% (637993/637993), 301.85 MiB | 7.85 MiB/s, done.
Resolving deltas: 100% (451622/451622), done.
Tapped 4019 casks (4,091 files, 322.3MB).#rm -rf "/opt/homebrew/Library/Taps/homebrew/homebrew-core"
#brew tap homebrew/core==> Tapping homebrew/core
Cloning into '/opt/homebrew/Library/Taps/homebrew/homebrew-core'...
remote: Enumerating objects: 1191036, done.
remote: Counting objects: 100% (7/7), done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 1191036 (delta 2), reused 4 (delta 2), pack-reused 1191029
Receiving objects: 100% (1191036/1191036), 476.09 MiB | 10.04 MiB/s, done.
Resolving deltas: 100% (824978/824978), done.
Tapped 3 commands and 6066 formulae (6,405 files, 522.4MB).

执行brew update

#brew update  
Warning: No remote 'origin' in /opt/homebrew/Library/Taps/homebrew/homebrew-services, skipping update!
Already up-to-date.
#brew doctor                                                               
Your system is ready to brew.
#rm -rf "/opt/homebrew/Library/Taps/homebrew/homebrew-services" 
#brew tap homebrew/services    
==> Tapping homebrew/services
Cloning into '/opt/homebrew/Library/Taps/homebrew/homebrew-services'...
remote: Enumerating objects: 2000, done.
remote: Counting objects: 100% (509/509), done.
remote: Compressing objects: 100% (176/176), done.
remote: Total 2000 (delta 348), reused 441 (delta 325), pack-reused 1491
Receiving objects: 100% (2000/2000), 548.53 KiB | 1.33 MiB/s, done.
Resolving deltas: 100% (903/903), done.
Tapped 1 command (45 files, 700.5KB). #brew update     
Already up-to-date.

问题解决


http://www.ppmy.cn/ops/145489.html

相关文章

华为 AI Agent:企业内部管理的智能变革引擎(11/30)

一、华为 AI Agent 引领企业管理新潮流 在当今数字化飞速发展的时代,企业内部管理的高效性与智能化成为了决定企业竞争力的关键因素。华为,作为全球领先的科技巨头,其 AI Agent 技术在企业内部管理中的应用正掀起一场全新的变革浪潮。 AI Ag…

机器学习:opencv图像识别--图片运算、边界、阈值处理、平滑处理

目录 一、图片运算 1.加法 1. 2.add 3.加权相加 2.减法 二、图片边界 三、图像阈值处理 四、图像平滑处理 1.生成椒盐噪声 2.滤波器 1.均值滤波 2.方框滤波 3.高斯滤波 4.中值滤波 一、图片运算 1.加法 1. 直接将图片上每个像素点的值加上给定值或者两张图片…

重温设计模式--5、职责链模式

文章目录 职责链模式的详细介绍C 代码示例C示例代码2 职责链模式的详细介绍 定义与概念 职责链模式(Chain of Responsibility Pattern)是一种行为型设计模式,它旨在将请求的发送者和多个接收者解耦,让多个对象都有机会处理请求&am…

Android Recovery 常见问题整理与解决办法

Android Recovery 常见问题整理与解决办法 引言 Android Recovery 是 Android 系统中一个至关重要的组件,主要用于系统恢复、OTA 更新、数据擦除等操作。对于开发者而言,理解和掌握 Recovery 的工作原理和常见问题解决方法至关重要。本文将详细整理 Android Recovery 开发过…

Python 自动化 打开网站 填表登陆 例子

图样 简价: 简要说明这个程序的功能: 1. **基本功能**: - 自动打开网站 - 自动填写登录信息(号、公司名称、密码) - 显示半透明状态窗口实时提示操作进度 2. **操作流程**: - 打开网站后自动…

Ubuntu存储硬盘扩容-无脑ChatGPT方法

文章目录 前言一、给出系统信息二、把系统信息扔个ChatGPT 前言 将系统信息扔个ChatGPT 根据自身的系统信息给出扩容命令 一、给出系统信息 先问ChatGPT ubuntu进行扩容 我给你系统信息 根据自身的系统信息 再进行下一步扩容 请问你需要什么? 用什么命令查看&…

Vue零基础教程|从前端框架到GIS开发系列课程(七)响应式系统介绍

前文指路:《Vue零基础教程》,从前端框架到GIS开发系列课程 Vue零基础教程|从前端框架到GIS开发系列课程(二) Vue零基础教程|从前端框架到GIS开发系列课程(三)模板语法 Vue零基础教程|从前端框架到GIS开发…

银河麒麟 SSH Vscode连接

SSH连接错误: [20:04:32.376] Failed to set up socket for dynamic port forward to remote port 38671: Socket closed. TCP port forwarding may be disabled, or the remote server may have crashed. See the VS Code Server log above for details. [20:04:3…