首页 > 解决方案 > Homebrew - 请求的 URL 已重新调整错误:404

问题描述

我正在尝试使用 brew 安装旧版本的 terragrunt。我已经cd进入了 的 tap 目录homebrew-core,找到了我需要的提交并尝试安装该版本。

但是我收到以下错误:

==> Downloading https://ghcr.io/v2/homebrew/core/terraform/manifests/0.13.2
##O=#  #
curl: (22) The requested URL returned error: 404
Error: Failed to download resource "terraform_bottle_manifest"
Download failed: https://ghcr.io/v2/homebrew/core/terraform/manifests/0.13.2

如果我尝试手动(通过浏览器)访问 URL,我会收到以下错误消息:

{"errors":[{"code":"UNAUTHORIZED","message":"authentication required"}]}

我能做些什么来解决这个问题吗?

标签: homebrew

解决方案


更新

Homebrew 提供了版本化的公式terraform@0.13。( terraform,terraform@0.13是不同的公式,安装到不同的位置。)

brew install terraform@0.13

https://ghcr.io/v2/homebrew/coreHOMEBREW_BOTTLE_DOMAIN,其中缓存了所有预构建的二进制版本(瓶子)。

您提供的错误意味着缓存的预构建已被删除。(我猜 Homebrew 只提供了最新配方的瓶子。)你需要terraform自己从源代码构建。

brew install --build-from-source terraform

推荐阅读