homebrew - 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 提供了版本化的公式terraform@0.13
。( terraform
,terraform@0.13
是不同的公式,安装到不同的位置。)
brew install terraform@0.13
https://ghcr.io/v2/homebrew/core
是HOMEBREW_BOTTLE_DOMAIN
,其中缓存了所有预构建的二进制版本(瓶子)。
您提供的错误意味着缓存的预构建已被删除。(我猜 Homebrew 只提供了最新配方的瓶子。)你需要terraform
自己从源代码构建。
brew install --build-from-source terraform
推荐阅读
- java - UnsatisfiedDependencyException:创建名称为“trackiHuntServiceImpl”的 bean 时出错:通过字段“deviceService”表示不满足的依赖关系
- powershell - System Center Service Management Automation (SMA) PowerShell Runbook Invoke-NcSsh:系统找不到指定的文件
- python - 在 Python 中读取带有重音符号和特殊字符的 YAML 文件
- django - 查找在 django 应用程序中创建用户时创建的数据库文件的位置
- bash - 如果存储在局部变量中,函数调用的退出代码将被忽略
- android - Android:在丰富的横幅创建应用程序中呈现视图(文本和图像)?
- javascript - 将 JavaScript 字符串拆分为不同长度的片段
- macos - 如何在 macOS Catalina 中打开拾色器?
- spring-boot - 如何在数字海洋的ubuntu 18中使用mysql部署spring boot rest api和angular 6+应用程序?
- python - 在 Django 视图中使用 for 循环覆盖 ChoiceField 选择属性