尽管使用brew成功地安装了其他软件包,但我无法安装maven。
在运行brew install maven
之后,我得到以下错误:
curl: (18) transfer closed with 9103121 bytes remaining to read
Error: maven: Failed to download resource "maven"
Download failed: https://ghcr.io/v2/homebrew/core/maven/blobs/sha256:ff38bb52b93216582dbd13fb00be5679090ac4b66f7e7c5c8cae5f70626238bb
我正在使用以下版本的brew和git:
$ brew --version
Homebrew 3.3.8
Homebrew/homebrew-core (git revision 7c983d9c784; last commit 2021-12-13)
Homebrew/homebrew-cask (git revision 538992b1fb; last commit 2021-12-13)
$ git --version
git version 2.23.0
在浏览器中访问失败的下载时,我还会收到403次失败:
{"errors":[{"code":"UNAUTHORIZED","message":"authentication required"}]}
这个错误对我来说很奇怪,因为我不认为与maven类似的公共水龙头的brew依赖关系需要授权。
发布于 2021-12-13 19:06:41
我的工作网络/VPN导致了这个错误。我能够下载成功禁用我的VPN和使用我的移动网络连接。
https://stackoverflow.com/questions/70338745
复制相似问题