GPG key errors when trying to update

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
T-Fen
Level 1
Level 1
Posts: 5
Joined: Sun Dec 15, 2013 3:18 pm

GPG key errors when trying to update

Post by T-Fen »

Hi -

Below is a portion of the output that I get when trying to 'apt update' my Linux Mint 20.2 laptop after installing some .debs from 3rd parties:

Code: Select all

Hit:13 http://ppa.launchpad.net/agornostal/ulauncher/ubuntu focal InRelease                                                                                                                                              
Hit:14 http://archive.canonical.com/ubuntu focal InRelease                                                                                                                                         
Hit:16 https://linux.teamviewer.com/deb stable InRelease                                                                                                          
Get:17 https://download.wavebox.app/stable/linux/deb amd64/ InRelease [1,775 B]                                   
Get:20 http://security.ubuntu.com/ubuntu focal-security/main amd64 DEP-11 Metadata [27.6 kB]                                    
Hit:15 https://packagecloud.io/AtomEditor/atom/any any InRelease                       
Get:21 http://ppa.launchpad.net/libratbag-piper/piper-libratbag-git/ubuntu focal InRelease [18.1 kB]
Hit:19 https://packagecloud.io/slacktechnologies/slack/debian jessie InRelease   
Get:22 http://security.ubuntu.com/ubuntu focal-security/universe amd64 DEP-11 Metadata [61.2 kB]
Get:23 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 DEP-11 Metadata [2,464 B]
Err:21 http://ppa.launchpad.net/libratbag-piper/piper-libratbag-git/ubuntu focal InRelease        
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D9C845E608C36551
Get:24 http://ppa.launchpad.net/teejee2008/ppa/ubuntu focal InRelease [17.5 kB]
Err:24 http://ppa.launchpad.net/teejee2008/ppa/ubuntu focal InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B5B116B72D0F61F0
Reading package lists... Done
W: GPG error: http://ppa.launchpad.net/libratbag-piper/piper-libratbag-git/ubuntu focal InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D9C845E608C36551
E: The repository 'http://ppa.launchpad.net/libratbag-piper/piper-libratbag-git/ubuntu focal 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.
W: GPG error: http://ppa.launchpad.net/teejee2008/ppa/ubuntu focal InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B5B116B72D0F61F0
E: The repository 'http://ppa.launchpad.net/teejee2008/ppa/ubuntu focal 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
I'm not sure where the keys are hosted, so trying to grab one like the following results in:

Code: Select all

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys D9C845E608C36551                                                                                                         100 ✘  took 11s   at 14:23:22  
Executing: /tmp/apt-key-gpghome.BvHiH3GdN3/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys D9C845E608C36551
gpg: key D9C845E608C36551: public key "Launchpad PPA for Piper, libratbag team" imported
gpg: Total number processed: 1
gpg:               imported: 1
gpg: invalid key resource URL '/tmp/apt-key-gpghome.BvHiH3GdN3/home:manuelschneid3r.asc.gpg'
gpg: keyblock resource '(null)': General error
gpg: key 1488EB46E192A257: 1 signature not checked due to a missing key
gpg: key 7721F63BD38B4796: 2 signatures not checked due to missing keys
gpg: key A684470CACCAF35C: 1 signature not checked due to a missing key
gpg: key 1488EB46E192A257: 1 signature not checked due to a missing key
gpg: key A6616109451BBBF2: 12 signatures not checked due to missing keys
gpg: key 3B4FE6ACC0B21F32: 3 signatures not checked due to missing keys
gpg: key D94AA3F0EFE21092: 3 signatures not checked due to missing keys
gpg: key C8CAB6595FDFF622: 2 signatures not checked due to missing keys
gpg: key 871920D1991BC93C: 1 signature not checked due to a missing key
gpg: Total number processed: 21
gpg:       skipped new keys: 21
Any guidance greatly appreciated. Looks like I'm missing a number of keys.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
sleeper12
Level 21
Level 21
Posts: 14603
Joined: Thu May 25, 2017 3:22 pm

Re: GPG key errors when trying to update

Post by sleeper12 »

I'm not sure, but you can try 'Add missing keys' in Software Sources, Maintenance.
T-Fen
Level 1
Level 1
Posts: 5
Joined: Sun Dec 15, 2013 3:18 pm

Re: GPG key errors when trying to update

Post by T-Fen »

Thank you for the suggestion. Unfortunately, I got the following back when running that:
gpg_error.png
sleeper12
Level 21
Level 21
Posts: 14603
Joined: Thu May 25, 2017 3:22 pm

Re: GPG key errors when trying to update

Post by sleeper12 »

For now, I would disable any of those you don't need in Software Sources, PPA's & Additional Repositories. Then, wait for a better solution.
T-Fen
Level 1
Level 1
Posts: 5
Joined: Sun Dec 15, 2013 3:18 pm

Re: GPG key errors when trying to update

Post by T-Fen »

Thanks. I'm using them all currently, so I hope that someone who has experienced a similar issue might shed some light on what is going on.

Even though it appears the keys are added when I retrieve them manually, I am still seeing the errors show up that they are missing. :-(
sleeper12
Level 21
Level 21
Posts: 14603
Joined: Thu May 25, 2017 3:22 pm

Re: GPG key errors when trying to update

Post by sleeper12 »

After you added them manually, you might need to run:

Code: Select all

 sudo apt update 
I see a Skype error in there, you can try this for that one:

Code: Select all

 curl https://repo.skype.com/data/SKYPE-GPG-KEY | sudo apt-key add - 
Locked

Return to “Software & Applications”