MacOS 14.3 安装 brew

终端执行:/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

可能出现的问题

问题一
连接超时,报错:

Failed to connect to raw.githubusercontent.com port 443 after 13 ms: Couldn't connect to server

解决方法:

由于某些因素,导致GitHub的raw.githubusercontent.com域名解析错误
打开https://www.ipaddress.com/查询raw.githubusercontent.com的IP地址
修改hosts

sudo vim /etc/hosts

添加如下内容:

199.232.28.133 raw.githubusercontent.com

问题二
连接正常但是找不到页面,报错404: Not Found
解决方法:

打开Homebrew官网:https://brew.sh/zh-cn/ 查看最新地址


问题三
安装时报错

fatal: unable to access 'https://github.com/Homebrew/brew/': Failed to connect to github.com port 443 after 75080 ms: Couldn't connect to server Failed during: /usr/bin/git fetch --force origin

解决方法:

确认github是否无法访问
修改hosts

sudo vim /etc/hosts

添加如下内容:

140.82.114.4 github.com
  • 4
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

CtrlCV工程师

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值