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

NO_PUBKEY C5469996F0DF68EC #30

Open
doolio opened this issue Aug 10, 2023 · 5 comments
Open

NO_PUBKEY C5469996F0DF68EC #30

doolio opened this issue Aug 10, 2023 · 5 comments

Comments

@doolio
Copy link

doolio commented Aug 10, 2023

Unable to install on my Debian machine following the README instructions. Warning states public key is not available.

Distributor ID:	Debian
Description:	Debian GNU/Linux 11 (bullseye)
Release:	11
Codename:	bullseye

Can confirm the /usr/share/keyrings/pujol.io.gpg keyring file is installed and the sources list updated.

@roddhjav
Copy link
Owner

Did you followed the steps in https://pkg.pujol.io/#using-this-repository ?

@doolio
Copy link
Author

doolio commented Aug 10, 2023

Firstly, thank you for the quick reply!

Yes, I followed those instructions which if I'm not mistaken match the README here.

@roddhjav
Copy link
Owner

Then, can you confirm that when you run: cat /usr/share/keyrings/pujol.io.gpg | gpg, you see the correct key ID shown. If yes, the key should be correctly imported.

@doolio
Copy link
Author

doolio commented Aug 11, 2023

At first no key ID or fingerprint was shown. With or without sudo. Though with sudo correct pub and uid lines in the output were shown with a blank line where the fingerprint would be between them which suggests maybe some configuration setting is causing this. However, once I remembered I have a non-standard GNUPGHOME set namely "${HOME}/.gnupg/trezor" on account of using a trezor-T with my password store which has its own ~/.gnupg/trezor/gpg.conf.

If I unset this GNUPGHOME I see the correct fingerprint (not the key ID as if I'm not mistaken that appears on the pub line after rsa4096) as expected. Not sure why the key ID is not showing now. I still have to use sudo but that is not surprising since the .gpg file is owned by root.

Now despite this I still get the same error when updating via aptitude. Perhaps I need to mark this key as trusted in some way? Excuse my ignorance here and thanks for your time.

$ cat /usr/share/keyrings/pujol.io.gpg | gpg
cat: /usr/share/keyrings/pujol.io.gpg: Permission denied
gpg: WARNING: no command supplied.  Trying to guess what you mean ...
gpg: processing message failed: Unknown system error
$ sudo cat /usr/share/keyrings/pujol.io.gpg | gpg
gpg: WARNING: no command supplied.  Trying to guess what you mean ...
[sudo] password for doolio: 
pub   rsa4096 2017-01-09 [SC]
      06A26D531D56C42D66805049C5469996F0DF68EC
uid           Alexandre Pujol (Git) <[email protected]>

@doolio
Copy link
Author

doolio commented Aug 11, 2023

If I instead leave GNUPGHOME as I have above but just ignore it by specifying --homedir as ~/.gnupg. I see the following output which I guess demonstrates that --keyid-format has a default value of none though the GPG docs don't state that.

$ sudo cat /usr/share/keyrings/pujol.io.gpg | gpg --homedir ~/.gnupg
gpg: WARNING: no command supplied.  Trying to guess what you mean ...
pub   rsa4096 2017-01-09 [SC]
      06A26D531D56C42D66805049C5469996F0DF68EC
uid           Alexandre Pujol (Git) <[email protected]>
$ sudo cat /usr/share/keyrings/pujol.io.gpg | gpg --homedir ~/.gnupg --keyid-format short
gpg: WARNING: no command supplied.  Trying to guess what you mean ...
pub   rsa4096/F0DF68EC 2017-01-09 [SC]
      06A26D531D56C42D66805049C5469996F0DF68EC
uid                   Alexandre Pujol (Git) <[email protected]>
$ sudo cat /usr/share/keyrings/pujol.io.gpg | gpg --homedir ~/.gnupg --keyid-format long
gpg: WARNING: no command supplied.  Trying to guess what you mean ...
pub   rsa4096/C5469996F0DF68EC 2017-01-09 [SC]
      06A26D531D56C42D66805049C5469996F0DF68EC
uid                           Alexandre Pujol (Git) <[email protected]>
$ sudo cat /usr/share/keyrings/pujol.io.gpg | gpg --homedir ~/.gnupg --keyid-format none
gpg: WARNING: no command supplied.  Trying to guess what you mean ...
pub   rsa4096 2017-01-09 [SC]
      06A26D531D56C42D66805049C5469996F0DF68EC
uid           Alexandre Pujol (Git) <[email protected]>

Anyway, this is all beside the point. It seems the key is correctly imported but I'm still unable to download from your deb repository.

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

2 participants