MacOS brew fatal: unable to access ‘https://github.com/Homebrew/homebrew-core/’

问题描述

MacOS在brew update更新时报错:

==> Tapping homebrew/core
Cloning into ‘/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core’…
fatal: unable to access ‘https://github.com/Homebrew/homebrew-core/’: LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
Error: Failure while executing; git clone https://github.com/Homebrew/homebrew-core /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core --depth=1 exited with 128.
Error: Failure while executing; /usr/local/bin/brew tap homebrew/core exited with 1.

解决方法

// 执行下面这句命令,更换为中科院的镜像: git clone git://mirrors.ustc.edu.cn/homebrew-core.git/ /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core --depth=1

Mac下的brew切换到国内的镜像源

// 更新
brew update

腾讯云限时秒杀【点击购买】

搬瓦工,CN2高速线路,1GB带宽,电信联通优化KVM,延迟低,速度快,建站稳定,搬瓦工BandwagonHost VPS优惠码BWH26FXH3HIQ,支持<支付宝> 【点击购买】!

Vultr$3.5日本节点,512M内存/500G流量/1G带宽,电信联通优化,延迟低,速度快【点击购买】!

阿里云香港、新加坡VPS/1核/1G/25G SSD/1T流量/30M带宽/年付¥288【点击购买】

MacOS brew fatal: unable to access ‘https://github.com/Homebrew/homebrew-core/’

`微信`扫码 加好友

链接到文章: https://www.gkxyz.com/macos-brew-fatal-unable-to-access-https-github-com-homebrew-homebrew-core.html

推荐站点

  • Vultr

    Vultr Global Cloud Hosting – Brilliantly Fast SSD […]

  • 腾讯云 – 产业智变 云启未来

    腾讯云为数百万的企业和开发者提供安全稳定的云计算服务,涵盖云服务器、云数据库、云存储、视频与CDN、域名注册等 […]

  • RAKsmart

    主机商介绍:RAKsmart是知名的美国服务器租用商,包括美国站群服务器、美国cn2服务器、香港服务器等热门产 […]

  • Akamai(Linode)

    Deploy more with Linux virtual machines, global infrast […]

评论已关闭