解决方法

删除homebrew-core后更新即可

cd /usr/local/Homebrew/Library/Taps/homebrew
rm -rf homebrew-core
brew upgrade

问题解析

Mac更新完系统后使用homebrew就报错:

Error:homebrew-core is a shallow clone.
To `brew update`, first run:git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow
This restriction has been made on GitHub's request because updating shallow
clones is an extremely expensive operation due to the tree layout and traffic of
Homebrew/homebrew-core and Homebrew/homebrew-cask. We don't do this for you
automatically to avoid repeatedly performing an expensive unshallow operation in
CI systems (which should instead be fixed to not use shallow clones). Sorry for
the inconvenience!

使用brew upgrade后会重新更新homebrew-core

Mac homebrew报错Error: homebrew-core is a shallow clone.相关推荐

  1. 解决Homebrew报错Error: Failure while executing; git clone https://github.com/Homebrew/homebrew-core....

    cd "$(brew --repo)/Library/Taps/" rm -rf homebrew mkdir homebrew cd homebrew git clone git ...

  2. Mac-安装Homebrew报错error: could not lock config file .git/config:

    Mac-安装Homebrew报错error: could not lock config file .git/config:

  3. 解决Homebrew报错Error: Failure while executing;

    cd "$(brew --repo)/Library/Taps/" rm -rf homebrew mkdir homebrew cd homebrew git clone git ...

  4. mac终端报错 ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using password: YES)

    环境: 系统:mac  m1 mysql版本:8.0.29-arm64 (m1版本) 背景: 在安装完8.0.29-arm64版本的mysql数据库以后,输入密码登录mysql时,出新了该错误 解决办 ...

  5. Mac brew报错Error: The following directories are not writable by your user: /usr/local/share/man/man5

    解决方法 sudo chown -R $(whoami) /usr/local/share/man/man5 chmod u+w /usr/local/share/man/man5

  6. Mac安装HomeBrew及update报错Error: Fetching /opt/homebrew/Library/Taps/homebrew/homebrew-cask failed

    Mac安装HomeBrew及update报错Error: Fetching /opt/homebrew/Library/Taps/homebrew/homebrew-cask failed! 报错 运 ...

  7. 【Mac】Mac下安装MySQL优化工具 percona-toolkit 报错 Error: Failed to download resource openssl@1.1

    1.背景 mac 下安装percona-toolkit 报错 Error: Failed to download resource "openssl@1.1" Download f ...

  8. mac上docker pull是报错Error response from daemon: Get https://xx.xx.xx.xx/v2/: Service Unavailable

    执行docker pull xx.xx.xx.xx/xx/xx,下载私有库的镜像时报错如下: Error response from daemon: Get https://xx.xx.xx.xx/v ...

  9. Mac用Pycharm安装mediapipe报错ERROR: Could not find a version that satisfies the requirement mediapipe

    问题 因为最近要用python做一个手部检测的项目,于是用找了个开源的程序跑了跑,发现安装mediapipe的时候会报错 ERROR: Could not find a version that sa ...

最新文章

  1. 关于学习Python的一点学习总结(45->反运算)
  2. 上市3年市值缩水9成,AI教育第一股流利说谋求私有化
  3. bin文件如何编辑_如何为高通固件创建rawprogram0和patch0文件
  4. bzoj 2502: 清理雪道(有下界的最小流)
  5. 基于 Arduino 的 RFID 识别实验
  6. 统计思维:程序员数学之概率统计(第2版)PDF
  7. c语言循环语句解鸡兔同笼,JavaScript的for循环语句练习之解决鸡兔同笼问题
  8. 火狐FireFox看视频不能全屏显示的问题
  9. 大数据与云计算、物联网的关系
  10. SharePoint Designer 2010 简介 - SharePoint Designer - Office.com
  11. 重庆大学计算机学院研究生奖学金评定准则,重庆大学经管学硕士生奖学金评定办法(试行).doc...
  12. 网络流精讲——最大流 包教包会
  13. HP惠普笔记本Microsoft ACPI-Compliant System未知设备的解决办法
  14. eureka 缺点
  15. 通过YUV空间调节图像的色度和饱和度
  16. C语言编程实现程输出所有玫瑰花数
  17. 怎么编译Linux内核?
  18. UE4-Post Process Volume各参数的释义
  19. Python 命名关键字形参
  20. Android 内存优化总结实践

热门文章

  1. Unity协程实现分析以及Lua协程与Unity协程的混合使用
  2. yolo如何降低loss_你一定从未看过如此通俗易懂的YOLO系列(从v1到v5)模型解读 (上)...
  3. 电脑任务管理器_Windows任务管理器突然打不开了
  4. UDK编辑器 49条小提示
  5. 【译】Part 1: 介绍和安装
  6. 如履薄冰 —— Redis懒惰删除的巨大牺牲
  7. Python中文问题
  8. WinForm DataGridView新增加行
  9. VO(DTO)模式在架构设计中是否需要
  10. linux shell学习笔记(二) 变量和运算符