Loading

更新Homebrew时候遇到的问题

问题描述:

更新Homebrew时候遇到无法访问github的问题,判定原因为DNS污Ran。

fatal: unable to access 'https://github.com/Homebrew/homebrew-cask.git/': LibreSSL SSL_connect: SSL_ ...

解决方案:

第一步:通过 IPAddress.com 查询 GitHub: Where the world builds software · GitHub 的IP地址。

第二步:修改本地hosts文件

# ----------------------------
# Github
#https://websites.ipaddress.com/
185.199.108.133
raw.githubusercontent.com

185.199.109.133
raw.githubusercontent.com

185.199.110.133
raw.githubusercontent.com

185.199.111.133
raw.githubusercontent.com

140.82.112.3 github.com

更新Homebrew的更快方案:

使用Tuna的Homebrew镜像源。

homebrew | 镜像站使用帮助 | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror

posted @ 2021-11-02 22:01  realXuan  阅读(26)  评论(0编辑  收藏  举报  来源