Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HashiCorp APT repository does not include packages for Ubuntu 22.04 LTS ("jammy") #31826

Closed
IgalSc opened this issue Sep 20, 2022 · 4 comments · Fixed by #32404
Closed

HashiCorp APT repository does not include packages for Ubuntu 22.04 LTS ("jammy") #31826

IgalSc opened this issue Sep 20, 2022 · 4 comments · Fixed by #32404
Labels

Comments

@IgalSc
Copy link

IgalSc commented Sep 20, 2022

Terraform Version

None - not able to install

Terraform Configuration Files

...terraform config...

Debug Output

N/A

Expected Behavior

install the terraform using the official guide
https://learn.hashicorp.com/tutorials/terraform/install-cli

Actual Behavior

running sudo apt update i get an error

Hit:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy InRelease
Get:2 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates InRelease [114 kB]
Get:3 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports InRelease [99.8 kB]
Get:4 https://apt.releases.hashicorp.com jammy InRelease [11.1 kB]
Hit:5 http://security.ubuntu.com/ubuntu jammy-security InRelease
Err:4 https://apt.releases.hashicorp.com jammy InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY DA418C88A3219F7B
Reading package lists... Done
W: GPG error: https://apt.releases.hashicorp.com jammy InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY DA418C88A3219F7B
E: The repository 'https://apt.releases.hashicorp.com jammy InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details

Steps to Reproduce

follow the installation guide on Ubuntu 22.04 LTS

Additional Context

No response

References

No response

@IgalSc IgalSc added bug new new issue not yet triaged labels Sep 20, 2022
@apparentlymart
Copy link
Member

apparentlymart commented Sep 20, 2022

Hi @IgalSc! Thanks for reporting this.

I don't think our apt repository has packages for Ubuntu 22.04 "jammy" yet; it isn't one of the distributions listed in the APT packages documentation.

I'm going to label this issue as a request to add support for this new distribution, since it is of course reasonable to expect that packages should be available for the latest LTS release of Ubuntu. The apt repository is not under the control of the team which works in this repository (there is a separate release engineering team which manages that across all HashiCorp products) but we can relay this request to them and then close it once they've confirmed that support for the new distribution is available.

Thanks again!

@apparentlymart apparentlymart added enhancement build Auto-pinning and removed bug new new issue not yet triaged labels Sep 20, 2022
@apparentlymart apparentlymart changed the title Unable to install terraform following the user guide. The repository 'https://apt.releases.hashicorp.com jammy InRelease' is not signed. HashiCorp APT repository does not include packages for Ubuntu 22.04 LTS ("impish") Sep 20, 2022
@apparentlymart apparentlymart changed the title HashiCorp APT repository does not include packages for Ubuntu 22.04 LTS ("impish") HashiCorp APT repository does not include packages for Ubuntu 22.04 LTS ("jammy") Sep 20, 2022
@apparentlymart
Copy link
Member

apparentlymart commented Sep 20, 2022

In the meantime, I think you could make this work by editing your apt sources file and changing "jammy" to "impish", to install the packages for Ubuntu 21.10. In practice all of the Terraform packages across all apt-based distributions have identical content and only differing metadata, because Terraform CLI executables depend only on the Linux kernel system call interface and so don't need to vary between Linux distributions.

The tutorial you followed creates the apt sources file at /etc/apt/sources.list.d/hashicorp.list, so that is the file you'd need to edit. I expect it will currently contain the following:

deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com jammy main

My suggestion is to replace "jammy" with "impish", like this:

deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com impish main

Note that although the Terraform packages are not distribution-version-sensitive, that isn't necessarily true for other HashiCorp products in this repository. If you intend to install other products beyond Terraform then I can't promise that the "impish" builds for those will work on your system; for those you may need to wait until there's real support for Ubuntu 22.04 in the repository.

@IgalSc
Copy link
Author

IgalSc commented Sep 20, 2022

Thank you !

johnstcn added a commit to coder/coder that referenced this issue Sep 26, 2022
To work around hashicorp/terraform#31826,
download terraform binary directly instead of using Hashicorp APT
repo.

Signed-off-by: Cian Johnston <cian@coder.com>
johnstcn pushed a commit to coder/coder that referenced this issue Sep 26, 2022
Download terraform binary directly instead of using Hashicorp APT
repo.
Workaround for hashicorp/terraform#31826

Signed-off-by: Cian Johnston <cian@coder.com>
Co-authored-by: Ben Potter <ben@coder.com>
@github-actions
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants