处理 homebrew 报错 “Error: Failed to download https://formulae.brew.sh/api/formula.jws.json!“

处理方式

export HOMEBREW_NO_INSTALL_FROM_API=1

brew update

参考文章

MacOS配置homebrew

⚠ 应急方式

使用国内镜像

# 中国科大镜像
export HOMEBREW_API_DOMAIN="https://mirrors.ustc.edu.cn/homebrew-bottles/api"
export HOMEBREW_BOTTLE_DOMAIN="https://mirrors.ustc.edu.cn/homebrew-bottles"
export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.ustc.edu.cn/brew.git"
export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.ustc.edu.cn/homebrew-core.git"

直接 export 不生效的话, 写到 ~/.zshrc 里面去

Error: No such keg: /opt/homebrew/Cellar/aircrack-ng liwen@tjzg ~ % which aircrack-ng aircrack-ng not found liwen@tjzg ~ % brew install aircrack-ng Running `brew update --auto-update`... ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles-portable-ruby/portable-ruby-3.3.7.arm64_big_sur.bottle.tar.gz ######################################################################### 100.0% ==> Pouring portable-ruby-3.3.7.arm64_big_sur.bottle.tar.gz ==> Downloading https://formulae.brew.sh/api/formula.jws.json ==> Downloading https://formulae.brew.sh/api/formula_tap_migrations.jws.json ==> Downloading https://formulae.brew.sh/api/cask.jws.json ==> Downloading https://formulae.brew.sh/api/cask_tap_migrations.jws.json ==> Fetching dependencies for aircrack-ng: ca-certificates, openssl@3, pcre, readline and sqlite ==> Fetching ca-certificates ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/ca-certificates-202 ######################################################################### 100.0% ==> Fetching openssl@3 ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/openssl%403-3.4.1.a ######################################################################### 100.0% ==> Fetching pcre ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/pcre-8.45.arm64_seq ######################################################################### 100.0% ==> Fetching readline ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/readline-8.2.13.arm ######################################################################### 100.0% ==> Fetching sqlite ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/sqlite-3.49.1.arm64 ######################################################################### 100.0% ==> Fetching aircrack-ng ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/aircrack-ng-1.7_1.a ######################################################################### 100.0% ==> Installing dependencies for aircrack-ng: ca-certificates, o
03-23
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值