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
GPG error : The following signatures couldn't be verified because the public key is not available: NO_PUBKEY AA16FCBCA621E701 #32622
Comments
Thanks for the report! |
It seems this is related: https://discuss.hashicorp.com/t/resolved-debian-repo-apt-update-fails-new-gpg-keys/49218/2 |
How can this be worked around? I've tried the naive solution I could come up with:
without success. (The keyring coming from
) |
Fix:
|
This didn't help me. Still the same error. |
I think this could solve your problem :
|
Then, remember to execute:
|
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys AA16FCBCA621E701 |
These are the changes I made to make my scripts work again: curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo gpg --yes --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list > /dev/null |
Thanks big time! That fixed it. I've been struggling with this for a few months! :-) |
works for me |
@fesplugas this worked for me, thanks a lot |
> sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys AA16FCBCA621E701
Executing: /tmp/apt-key-gpghome.vwsHNbF8HS/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys AA16FCBCA621E701
gpg: keyserver receive failed: Server indicated a failure So... 🤷🏻 I've commented hashicorp out in |
still showing this issues |
Related message from Ubuntu 22.10 (kinetic):
I've found a workaround by updating /etc/apt/sources.list.d/hashicorp.list to the following (must be all on one line, this comment gets wrapped):
Note the documentation recommends against the allow-insecure=yes option. (See |
Use HasiCorp Official Packaging Guide Download the signing key to a new keyringwget -O- https://apt.releases.hashicorp.com/gpg | gpg --dearmor | sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg Verify the key's fingerprintgpg --no-default-keyring --keyring /usr/share/keyrings/hashicorp-archive-keyring.gpg --fingerprint The fingerprint must match |
😟 EDIT :
All good now. |
This worked for me! |
SNAP!!!! |
Total novice, this worked for me thanks! |
worked for me |
Changing to a documentation type ticket, as it seems the #32622 (comment) works more reliably than what we currently have documented (without comparing the two, my memory is that this matches the official packaging guide but not the "download terraform" page install instructions.) |
This is still occurring. Download the signing key to a new keyring Or as a single line |
This method saved me. |
@XSmith-Vertex 's method worked for me too , I replaced what the docs was sharing about generating the keyring with his single line implementation. |
The only thing that really worked on Ubuntu 20.04 after following the official incomplete documentation:
|
This comment was marked as spam.
This comment was marked as spam.
$ sudo apt update and what about this error? |
Terraform Version
Terraform Configuration Files
NA
Debug Output
NA
Expected Behavior
Followed this official documentation - (https://www.hashicorp.com/official-packaging-guide)
Actual Behavior
Error is occurring on sudo apt update step
Steps to Reproduce
Followed this official documentation - (https://www.hashicorp.com/official-packaging-guide)
Even fingerprint verification displayed the exact value as mentioned in the page.
Added the hashicorp repo
Error occurs
Additional Context
No response
References
The text was updated successfully, but these errors were encountered: