homebrew 安装报错 The requested URL returned error: 403 Forbidden

ゝ一世哀愁。 2022-08-29 13:51 361阅读 0赞

运行homebrew 提示如下错误

  1. curl: (22) The requested URL returned error: 403 Forbidden
  2. Warning: Bottle missing, falling back to the default domain...
  3. .......
  4. .......
  5. Error: Failure while executing; `tar --extract --no-same-owner --file /Users/.../Library/Caches/Homebrew/downloads/90667fdee7299f388e37cff8489bb1a5953928ac282e7065672f9a5d518f7e76--p11-kit-0.24.0.catalina.bottle.tar.gz --directory /private/tmp/d20210720-1703-1xt1r1e` exited with 1. Here's the output:
  6. tar: Error opening archive: Failed to open '/Users/.../Library/Caches/Homebrew/downloads/90667fdee7299f388e37cff8489bb1a5953928ac282e7065672f9a5d518f7e76--p11-kit-0.24.0.catalina.bottle.tar.gz'

两种解决方法
1.手动安装缺失依赖后再继续安装

  1. brew install p11-kit

2.运行 brew config 显示

  1. HOMEBREW_BOTTLE_DOMAIN: https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/bottles

去掉清华大学的镜像设置 (暂时去除 永久去除需要修改profile文件)

  1. export HOMEBREW_BOTTLE_DOMAIN=''

发表评论

表情:
评论列表 (有 0 条评论,361人围观)

还没有评论,来说两句吧...

相关阅读