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

devtools/2024/12/28 14:14:22/
  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/devtools/146130.html

相关文章

windows C#-对象和集合初始值设定项(上)

使用 C# 可以在单条语句中实例化对象或集合并执行成员分配。 对象初始值设定项 使用对象初始值设定项,你可以在创建对象时向对象的任何可访问字段或属性分配值,而无需调用后跟赋值语句行的构造函数。 利用对象初始值设定项语法,你可为构造函…

BUG分析 - 重启有时失败

1. 倒查版本 1.0_11 - ok1.0_12 - fail 2.对比1.0_11和1.0_12 失败时的日志 ================================== 1.0_11 ============================== 2024-12-26 09:46:51.886 INFO [26332] [Thre

如何在Facebook发布Reels?简单易懂的操作指南

随着短视频风靡全球,Facebook Reels 成为了吸引用户和推广内容的强大工具。无论你是个人创作者还是企业运营者,掌握 Facebook Reels 的发布技巧都能让你的内容更快触达目标受众。本文将详细介绍如何在 Facebook 发布 Reels,帮助你轻松上手这一…

【Maven】如何解决Maven循环依赖?

1、什么是循环依赖? 循环依赖指的是两个或多个项目(或模块)之间相互依赖,形成一个循环。例如,项目 A 依赖于项目 B,项目 B 又依赖于项目 A,形成了一个依赖环。这种情况可能涉及多个项目&#x…

【C++动态规划】1911. 最大子序列交替和|1785

本文涉及知识点 C动态规划 LeetCode1911. 最大子序列交替和 一个下标从 0 开始的数组的 交替和 定义为 偶数 下标处元素之 和 减去 奇数 下标处元素之 和 。 比方说,数组 [4,2,5,3] 的交替和为 (4 5) - (2 3) 4 。 给你一个数组 nums ,请你返回 nu…

ES-聚合分析

ES的聚合分析 什么是ES的聚合分析 ElasticSearch除搜索意外,提供的针对ES数据进行统计分析的功能通过聚合,我们会得到一个数据的概览,是分析和总结全套的数据,而不是寻找单独的文档高性能,只要一条语句就可以得到分析…

线性代数行列式

目录 二阶与三阶行列式 二元线性方程组与二阶行列式 三阶行列式 全排列和对换 排列及其逆序数 对换 n阶行列式的定义 行列式的性质 二阶与三阶行列式 二元线性方程组与二阶行列式 若是采用消元法解x1、x2的话则得到以下式子 有二阶行列式的规律可得:分…

springMVC报错java版本

报错:不支持java5 但是我的java版本是java11 解决 更改设置: