文章详情

短信预约-IT技能 免费直播动态提醒

请输入下面的图形验证码

提交验证

短信预约提醒成功

Homebrew:Mac os 使用brew工具时报错No remote ‘origin‘

2023-09-17 11:13

关注

Homebrew:Mac os 使用brew工具时报错No remote ‘origin’

使用 brew update 时报错:

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
brew doctorPlease 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
 brew tap homebrew/cask ==> Tapping homebrew/caskCloning 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 637981Receiving 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
brew tap homebrew/core==> Tapping homebrew/coreCloning 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 1191029Receiving 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
brew update           Warning: No remote 'origin' in /opt/homebrew/Library/Taps/homebrew/homebrew-services, skipping update!Already up-to-date.

在这里插入图片描述
发现还是报错,继续使用brew doctor

brew doctor 
brew doctor       Your system is ready to brew.

无操作提示,根据前面的提示,解决

Warning: No remote 'origin' in /opt/homebrew/Library/Taps/homebrew/homebrew-services, skipping update!Already up-to-date.

输入:

rm -rf "/opt/homebrew/Library/Taps/homebrew/homebrew-services" brew tap homebrew/services    
brew tap homebrew/services    ==> Tapping homebrew/servicesCloning 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 1491Receiving 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
brew update     Already up-to-date.

根据警告, 执行提示的命令即可解决问题

图片分享
在这里插入图片描述

来源地址:https://blog.csdn.net/Jo_Francis/article/details/124746363

阅读原文内容投诉

免责声明:

① 本站未注明“稿件来源”的信息均来自网络整理。其文字、图片和音视频稿件的所属权归原作者所有。本站收集整理出于非商业性的教育和科研之目的,并不意味着本站赞同其观点或证实其内容的真实性。仅作为临时的测试数据,供内部测试之用。本站并未授权任何人以任何方式主动获取本站任何信息。

② 本站未注明“稿件来源”的临时测试数据将在测试完成后最终做删除处理。有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341

软考中级精品资料免费领

  • 历年真题答案解析
  • 备考技巧名师总结
  • 高频考点精准押题
  • 2024年上半年信息系统项目管理师第二批次真题及答案解析(完整版)

    难度     813人已做
    查看
  • 【考后总结】2024年5月26日信息系统项目管理师第2批次考情分析

    难度     354人已做
    查看
  • 【考后总结】2024年5月25日信息系统项目管理师第1批次考情分析

    难度     318人已做
    查看
  • 2024年上半年软考高项第一、二批次真题考点汇总(完整版)

    难度     435人已做
    查看
  • 2024年上半年系统架构设计师考试综合知识真题

    难度     224人已做
    查看

相关文章

发现更多好内容

猜你喜欢

AI推送时光机
位置:首页-资讯-移动开发
咦!没有更多了?去看看其它编程学习网 内容吧
首页课程
资料下载
问答资讯