【问题标题】:Error when installing Terraform Err:5 404 Not Found安装 Terraform 时出错 Err:5 404 Not Found
【发布时间】:2021-10-14 01:18:31
【问题描述】:

我正在使用 LMDE 4 Debbie,我正在尝试在我的笔记本电脑上安装 Terraform

我正在遵循https://learn.hashicorp.com/tutorials/terraform/install-cli中定义的步骤

当我运行 sudo apt updated 时,我收到以下错误

 Err:5 https://apt.releases.hashicorp.com debbie Release                                                                                                                
  404  Not Found [IP: 2a04:4e42:25::561 443]

当我尝试安装它时说找不到

$ sudo apt install terraform
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package terraform

【问题讨论】:

  • 很遗憾你的问题还不清楚。你到底在用什么linux?什么版本? linux mint 有很多版本。
  • LMDE 4 黛比,更新

标签: terraform linux-mint


【解决方案1】:

debbie 可能是lsb_release -cs 的返回值,您需要将其替换为有效的 Debian 发行版以订阅现有的 apt 存储库。 LMDE 4 基于buster,所以可以使用命令:

sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com buster main"

而不是为发行版返回lsb_release -cs。这应该可以解决您的问题。

【讨论】:

    猜你喜欢
    • 2016-10-24
    • 2018-11-05
    • 2018-04-17
    • 1970-01-01
    • 2019-12-27
    • 2021-12-18
    • 2017-09-03
    • 2013-03-10
    • 2019-09-06
    相关资源
    最近更新 更多