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

Missing gpg key? #13054

Open
JoKeyser opened this issue Dec 12, 2019 · 18 comments
Open

Missing gpg key? #13054

JoKeyser opened this issue Dec 12, 2019 · 18 comments

Comments

@JoKeyser
Copy link

JoKeyser commented Dec 12, 2019

During initial install on Ubuntu 18.04, I receive this gpg error:

Failed to verify signature archive-contents.sig:
No public key for 066DAFCB81E42C40 created at 2019-12-11T14:10:02+0100 using RSA
Command output:
gpg: Signature made Mi 11 Dez 2019 14:10:02 CET
gpg:                using RSA key C433554766D3DDC64221BFAA066DAFCB81E42C40
gpg: Can't check signature: No public key

And when I try to gpg --recv-keys 066DAFCB81E42C40, I get this:

gpg: key 066DAFCB81E42C40: 1 signature not checked due to a missing key
gpg: key 066DAFCB81E42C40: "GNU ELPA Signing Agent (2019) <elpasign@elpa.gnu.org>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
@JoKeyser
Copy link
Author

Oh, the fix was simple:

$ gpg --homedir ~/.emacs.d/elpa/gnupg --receive-keys 066DAFCB81E42C40

gpg: key 066DAFCB81E42C40: public key "GNU ELPA Signing Agent (2019) <elpasign@elpa.gnu.org>" imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg:               imported: 1

@karlicoss
Copy link

Related: aquamacs-emacs/aquamacs-emacs#166

@karlicoss
Copy link

I wonder if it's worth reopening?
Not sure what's the proper way to resolve this would be, but this must be very confusing for people new to Spacemacs (half of packages failing to install).

@duianto
Copy link
Collaborator

duianto commented Dec 28, 2019

Emacs 26.3 is supposed to have fixed the signature issue.

And the ppa:kelleyk/emacs has updated the keys for older Emacs versions:
ELPA signing key expired kelleyk/ppa-emacs#9

So the issue might have been fixed in linux, maybe the Mac Emacs distributions need to update the key for older Emacs versions.

@vvarik
Copy link

vvarik commented Jun 11, 2020

Not fixed in Linux (Ubuntu 18.04.4), just ran into it today. I can confirm it is confusing for new people. For instance, I don't know whether I should 1) just import the gpg key and restart; 2) remove everything in elpa except the gnupg folder and then import gpg key; 3) remove everything in elpa and issue emacs --insecure

@stradicat
Copy link
Contributor

stradicat commented Aug 27, 2020

I tried this, passing the keyserver:
gpg --homedir ~/.emacs.d/elpa/gnupg --keyserver hkp://keys.gnupg.net --recv-keys 066DAFCB81E42C40

gpg: clave 066DAFCB81E42C40: "GNU ELPA Signing Agent (2019) <elpasign@elpa.gnu.org>" sin cambios
gpg: Cantidad total procesada: 1
gpg:              sin cambios: 1

It worked in Ubuntu 18.04.

@iddm
Copy link
Contributor

iddm commented Sep 7, 2020

I tried this, passing the keyserver:
gpg --homedir ~/.emacs.d/elpa/gnupg --keyserver hkp://keys.gnupg.net --recv-keys 066DAFCB81E42C40

gpg: clave 066DAFCB81E42C40: "GNU ELPA Signing Agent (2019) <elpasign@elpa.gnu.org>" sin cambios
gpg: Cantidad total procesada: 1
gpg:              sin cambios: 1

It worked in Ubuntu 18.04.

Also works on centos 7.5.

@refmitchell
Copy link

I should clarify, I'm not a spacemacs user, just straight emacs but I don't think that matters beyond the repo the issue happens to be in. Just reaching out for help wherever I can.

I'm still having experiencing this issue (Ubuntu 18.04). I tried the command suggested by @DennisMayr which results in:

gpg --homedir ~/.emacs.d/elpa/gnupg --keyserver hkp://keys.gnupg.net --recv-keys 066DAFCB81E42C40
gpg: keyserver receive failed: No data

When I search the keyserver via web-browser I can't find the fingerprint either and I'm completely lost. I have a related stackexchange post here with all the info. The main roadblock I seem to hit is that I can never find the fingerprint and I have no idea why.

@Grazfather
Copy link

Easiest fix for me was to just install emacs 27.1

For ubuntu:

sudo add-apt-repository ppa:kelleyk/emacs
sudo apt update
sudo apt install emacs27

@toomaj
Copy link

toomaj commented Aug 4, 2021

Try the following as I've also updated here

gpg --homedir ~/.emacs.d/elpa/gnupg --keyserver hkps://keys.openpgp.org --recv-keys 066DAFCB81E42C40

You might also like to add keyserver hkp://keys.gnupg.net to your ~/.emacs.d/elpa/gnupg/gpg.conf file

@stradicat
Copy link
Contributor

Try the following as I've also updated here

gpg --homedir ~/.emacs.d/elpa/gnupg --keyserver hkps://keys.openpgp.org --recv-keys 066DAFCB81E42C40

You might also like to add keyserver hkp://keys.gnupg.net to your ~/.emacs.d/elpa/gnupg/gpg.conf file

Yup, apparently the server you've pointed gpg to works better. I'll update my documents, too; thanks for the collective heads-up!

@ghost

This comment was marked as duplicate.

@lebensterben
Copy link
Collaborator

Please add additional information, at least your system information, when adding new comments.

@lebensterben lebensterben reopened this Aug 25, 2022
@lebensterben
Copy link
Collaborator

Let's add this to FAQ.

Copy link

github-actions bot commented May 1, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!

@github-actions github-actions bot added the stale marked as a stale issue/pr (usually by a bot) label May 1, 2024
@CFGrote
Copy link

CFGrote commented May 24, 2024

I have the same issue now with emacs28.2 on debian 12. after fresh install of spacemacs, I get this:

image

Trying to get the key manually also failed:

▶ gpg --homedir ~/.emacs.d/elpa/gnupg --receive-keys 645357D2883A0966          
gpg: keyserver receive failed: No data

Any advice would be appreciated. Thanks!

@github-actions github-actions bot removed the stale marked as a stale issue/pr (usually by a bot) label May 24, 2024
@sebogh
Copy link

sebogh commented May 25, 2024

gpg --homedir ~/.emacs.d/elpa/gnupg --keyserver hkp://keyserver.ubuntu.com --recv-keys 645357D2883A0966

worked for me (Debian 12, Emacs 28.2)

@CFGrote
Copy link

CFGrote commented May 27, 2024

Thanks @sebogh , switching to hkp://keyserver.ubuntu.com solved it for me, too. The missing key was 645357D2883A0966 in my case, though (as per your edited comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests