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

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

  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.git

With 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/brew

Warning: Homebrew/homebrew-cask was not tapped properly! Run:
  rm -rf "/opt/homebrew/Library/Taps/homebrew/homebrew-cask"
  brew tap homebrew/cask

Warning: 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.kler.cn/a/452331.html

相关文章:

  • Redis 集群架构:高可用与扩展性
  • Python数据处理——re库与pydantic的使用总结与实战,处理采集到的思科ASA防火墙设备信息
  • Excel粘贴复制不完整的原因以及解决方法
  • 前端Python应用指南(二)深入Flask:理解Flask的应用结构与模块化设计
  • 4-pandas常用操作
  • 《Cocos Creator游戏实战》非固定摇杆实现原理
  • linux-21 目录管理(一)mkdir命令,创建空目录
  • 【KV存储(3)】KV引擎详细设计
  • 使用openvino加速部署paddleocr文本检测模型(C++版)
  • 【Kubernetes 指南】基础入门——Kubernetes 基本概念(二)
  • 工业大数据分析算法实战-day15
  • 在 React 项目中安装和配置 Three.js
  • 后端接口设计
  • 基于AT89C52单片机的6位电子密码锁设计
  • CPU性能优化--前端优化
  • 使用腾讯云CVM搭建 K8s + Docker + Harbor :部署SpringBoot应用与配置指南
  • 如何修改pip全局缓存位置和全局安装包存放路径
  • 使用Tauri + Leptos开发带系统托盘桌面应用
  • Spring Boot 整合 RabbitMQ:从入门到实践
  • Pytorch | 利用AI-FGTM针对CIFAR10上的ResNet分类器进行对抗攻击
  • 准备考试:解决大学入学考试问题
  • springMVC-请求响应
  • 【数学建模】利用Matlab绘图(2)
  • linux 常用 Linux 命令指南
  • Linux大数据方向shell
  • 借助Aspose.html控件, 使用 Java 编程将 HTML 转换为 BMP