-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
apt-key deprecated, update docs for new location to store key #30911
Comments
Hi all, is this documentation change still needed? If so, please let me know. |
yes this is needed and had to fix this on my ubuntu 22.04 install and this works perfectly but I would also recommend that having that remove the key first first then re-add it in the correct place afterwards to but you will want to do sudo apt-key del E8A032E094D8EB4EA189D270DA418C88A3219F7B first as mentioned to remove it from the old location |
I Will Work on this and submit a PR later |
Hi All, I believe this community PR will solve this issue, let me know if folks have additional comments: #30956 |
The location of where to store the key file is wrong |
Just above, a draft, which works on my Ubuntu 22.04 |
Hi All, Apologies for the very long delay on this! Thank you @L1ghtn1ng - you're right. We still need to fix the location. I'm going to open a PR with this fix for the page, based on @jfouquat input. Thank you both! I'll post it here for review once I've tested it. I'm also going to alert others on my team, as I believe we'll need to also update the Downloads page and our getting started tutorials! |
With two commands, as the current docs have, I think the correct new version is:
I tested the above on Ubuntu 22.04. |
Hi All! Thanks to @robin-norwood - we've updated the commands and merged a PR for the APT page. We're also working with web dev to get these commands updated on the Terraform Downloads page as well. Thanks again for calling this out! |
Consider updating the article (https://www.hashicorp.com/blog/announcing-the-hashicorp-linux-repository) too as this appears for search queries relating to the HashiCorp Linux repository. |
@karlbateman - Thank you! I will pass this along to the team responsible for these blogs. We appreciate you flagging this for us! |
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. |
On the website, Repository configuration should be updated from:
curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add -
to:
curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo tee /etc/apt/trusted.gpg.d/hashicorp.asc
or something similar.
The current version now gives an error when doing
apt update
in Ubuntu 22.04 LTS:W: https://apt.releases.hashicorp.com/dists/jammy/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
relevant file: website/docs/cli/install/apt.mdx
The text was updated successfully, but these errors were encountered: