[GH-ISSUE #274] GPG error: https://ppa.launchpadcontent.net/amnezia/ppa/ubuntu noble InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4166F2C257290828 #274

Open
opened 2026-11-07 18:00:44 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @queenyjohns on GitHub (Nov 4, 2026).
Original GitHub issue: https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/issues/274

I followed the instruction on the main page

Proceed to PPAs section and add ppa:amnezia/ppa PPA repository, after that save configuration and rebuild apt cache.

I got this error in Linux Mint when I tried to update the cache after adding the PPA

$ sudo apt-get update
Ign:1 http://packages.linuxmint.com wilma InRelease                                                
Get:2 http://security.ubuntu.com/ubuntu noble-security InRelease [126 kB]                          
Hit:3 http://archive.ubuntu.com/ubuntu noble InRelease                                             
Get:4 http://packages.linuxmint.com wilma Release [27.6 kB]                                        
Get:5 http://archive.ubuntu.com/ubuntu noble-updates InRelease [126 kB]                            
Get:6 https://ppa.launchpadcontent.net/amnezia/ppa/ubuntu noble InRelease [17.8 kB]                
Get:7 http://packages.linuxmint.com wilma Release.gpg [833 B]                              
Get:8 http://security.ubuntu.com/ubuntu noble-security/main i386 Packages [384 kB]                 
Err:6 https://ppa.launchpadcontent.net/amnezia/ppa/ubuntu noble InRelease             
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4166F2C257290828
Get:9 http://packages.linuxmint.com wilma/main amd64 Packages [18.1 kB]                 
Get:10 http://packages.linuxmint.com wilma/main i386 Packages [17.6 kB]                            
Get:11 http://packages.linuxmint.com wilma/upstream i386 Packages [21.2 kB]             
Get:12 http://packages.linuxmint.com wilma/upstream amd64 Packages [51.3 kB]                       
Get:13 http://archive.ubuntu.com/ubuntu noble-backports InRelease [126 kB]                         
Get:14 http://security.ubuntu.com/ubuntu noble-security/main amd64 Packages [1,155 kB]             
Get:15 http://archive.ubuntu.com/ubuntu noble-updates/main i386 Packages [571 kB]             
Get:16 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages [1,408 kB]
Get:17 http://security.ubuntu.com/ubuntu noble-security/main Translation-en [233 kB]             
Get:18 http://security.ubuntu.com/ubuntu noble-security/main amd64 Components [46.4 kB]            
Get:19 http://security.ubuntu.com/ubuntu noble-security/restricted amd64 Packages [1,721 kB]       
Get:20 http://archive.ubuntu.com/ubuntu noble-updates/main Translation-en [311 kB]                 
Get:21 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Components [181 kB]               
Get:22 http://security.ubuntu.com/ubuntu noble-security/restricted Translation-en [394 kB]         
Get:23 http://archive.ubuntu.com/ubuntu noble-updates/restricted amd64 Packages [1,813 kB]         
Get:24 http://security.ubuntu.com/ubuntu noble-security/universe amd64 Packages [1,224 kB]         
Get:25 http://security.ubuntu.com/ubuntu noble-security/universe i386 Packages [839 kB]            
Get:26 http://archive.ubuntu.com/ubuntu noble-updates/restricted Translation-en [412 kB]           
Get:27 http://security.ubuntu.com/ubuntu noble-security/universe Translation-en [247 kB]           
Get:28 http://archive.ubuntu.com/ubuntu noble-updates/universe amd64 Packages [1,707 kB]           
Get:29 http://security.ubuntu.com/ubuntu noble-security/universe amd64 Components [76.2 kB]        
Get:30 http://security.ubuntu.com/ubuntu noble-security/multiverse Translation-en [12.4 kB]        
Get:31 http://archive.ubuntu.com/ubuntu noble-updates/universe i386 Packages [1,151 kB]            
Get:32 http://archive.ubuntu.com/ubuntu noble-updates/universe Translation-en [343 kB]             
Get:33 http://archive.ubuntu.com/ubuntu noble-updates/universe amd64 Components [388 kB]           
Get:34 http://archive.ubuntu.com/ubuntu noble-updates/multiverse Translation-en [14.3 kB]          
Get:35 http://archive.ubuntu.com/ubuntu noble-updates/multiverse amd64 Components [940 B]          
Get:36 http://archive.ubuntu.com/ubuntu noble-backports/main amd64 Components [5,772 B]            
Get:37 http://archive.ubuntu.com/ubuntu noble-backports/universe amd64 Components [12.6 kB]        
Reading package lists... Done                                                                      
W: GPG error: https://ppa.launchpadcontent.net/amnezia/ppa/ubuntu noble InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4166F2C257290828
E: The repository 'https://ppa.launchpadcontent.net/amnezia/ppa/ubuntu noble 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 used the Debian instructions to add the key. It says it added the key, but it doesn't get used by apt-get

$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 57290828
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
Executing: /tmp/apt-key-gpghome.zSJYM3xcum/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 57290828
gpg: key 4166F2C257290828: public key "Launchpad PPA for Iurii Egorov" imported
gpg: Total number processed: 1
gpg:               imported: 1

$ sudo apt-get update
Hit:1 http://security.ubuntu.com/ubuntu noble-security InRelease
Ign:2 http://packages.linuxmint.com wilma InRelease                                                
Hit:3 http://packages.linuxmint.com wilma Release                                                  
Hit:4 http://archive.ubuntu.com/ubuntu noble InRelease                            
Hit:6 http://archive.ubuntu.com/ubuntu noble-updates InRelease
Get:7 https://ppa.launchpadcontent.net/amnezia/ppa/ubuntu noble InRelease [17.8 kB]
Err:7 https://ppa.launchpadcontent.net/amnezia/ppa/ubuntu noble InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4166F2C257290828
Hit:8 http://archive.ubuntu.com/ubuntu noble-backports InRelease
Reading package lists... Done
W: GPG error: https://ppa.launchpadcontent.net/amnezia/ppa/ubuntu noble InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4166F2C257290828
E: The repository 'https://ppa.launchpadcontent.net/amnezia/ppa/ubuntu noble 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.

Is there another step needed to update/use the public key?

Originally created by @queenyjohns on GitHub (Nov 4, 2026). Original GitHub issue: https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/issues/274 I followed the instruction on the main page ``` Proceed to PPAs section and add ppa:amnezia/ppa PPA repository, after that save configuration and rebuild apt cache. ``` I got this error in Linux Mint when I tried to update the cache after adding the PPA ``` $ sudo apt-get update Ign:1 http://packages.linuxmint.com wilma InRelease Get:2 http://security.ubuntu.com/ubuntu noble-security InRelease [126 kB] Hit:3 http://archive.ubuntu.com/ubuntu noble InRelease Get:4 http://packages.linuxmint.com wilma Release [27.6 kB] Get:5 http://archive.ubuntu.com/ubuntu noble-updates InRelease [126 kB] Get:6 https://ppa.launchpadcontent.net/amnezia/ppa/ubuntu noble InRelease [17.8 kB] Get:7 http://packages.linuxmint.com wilma Release.gpg [833 B] Get:8 http://security.ubuntu.com/ubuntu noble-security/main i386 Packages [384 kB] Err:6 https://ppa.launchpadcontent.net/amnezia/ppa/ubuntu noble InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4166F2C257290828 Get:9 http://packages.linuxmint.com wilma/main amd64 Packages [18.1 kB] Get:10 http://packages.linuxmint.com wilma/main i386 Packages [17.6 kB] Get:11 http://packages.linuxmint.com wilma/upstream i386 Packages [21.2 kB] Get:12 http://packages.linuxmint.com wilma/upstream amd64 Packages [51.3 kB] Get:13 http://archive.ubuntu.com/ubuntu noble-backports InRelease [126 kB] Get:14 http://security.ubuntu.com/ubuntu noble-security/main amd64 Packages [1,155 kB] Get:15 http://archive.ubuntu.com/ubuntu noble-updates/main i386 Packages [571 kB] Get:16 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages [1,408 kB] Get:17 http://security.ubuntu.com/ubuntu noble-security/main Translation-en [233 kB] Get:18 http://security.ubuntu.com/ubuntu noble-security/main amd64 Components [46.4 kB] Get:19 http://security.ubuntu.com/ubuntu noble-security/restricted amd64 Packages [1,721 kB] Get:20 http://archive.ubuntu.com/ubuntu noble-updates/main Translation-en [311 kB] Get:21 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Components [181 kB] Get:22 http://security.ubuntu.com/ubuntu noble-security/restricted Translation-en [394 kB] Get:23 http://archive.ubuntu.com/ubuntu noble-updates/restricted amd64 Packages [1,813 kB] Get:24 http://security.ubuntu.com/ubuntu noble-security/universe amd64 Packages [1,224 kB] Get:25 http://security.ubuntu.com/ubuntu noble-security/universe i386 Packages [839 kB] Get:26 http://archive.ubuntu.com/ubuntu noble-updates/restricted Translation-en [412 kB] Get:27 http://security.ubuntu.com/ubuntu noble-security/universe Translation-en [247 kB] Get:28 http://archive.ubuntu.com/ubuntu noble-updates/universe amd64 Packages [1,707 kB] Get:29 http://security.ubuntu.com/ubuntu noble-security/universe amd64 Components [76.2 kB] Get:30 http://security.ubuntu.com/ubuntu noble-security/multiverse Translation-en [12.4 kB] Get:31 http://archive.ubuntu.com/ubuntu noble-updates/universe i386 Packages [1,151 kB] Get:32 http://archive.ubuntu.com/ubuntu noble-updates/universe Translation-en [343 kB] Get:33 http://archive.ubuntu.com/ubuntu noble-updates/universe amd64 Components [388 kB] Get:34 http://archive.ubuntu.com/ubuntu noble-updates/multiverse Translation-en [14.3 kB] Get:35 http://archive.ubuntu.com/ubuntu noble-updates/multiverse amd64 Components [940 B] Get:36 http://archive.ubuntu.com/ubuntu noble-backports/main amd64 Components [5,772 B] Get:37 http://archive.ubuntu.com/ubuntu noble-backports/universe amd64 Components [12.6 kB] Reading package lists... Done W: GPG error: https://ppa.launchpadcontent.net/amnezia/ppa/ubuntu noble InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4166F2C257290828 E: The repository 'https://ppa.launchpadcontent.net/amnezia/ppa/ubuntu noble 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 used the Debian instructions to add the key. It says it added the key, but it doesn't get used by `apt-get` ``` $ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 57290828 Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)). Executing: /tmp/apt-key-gpghome.zSJYM3xcum/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 57290828 gpg: key 4166F2C257290828: public key "Launchpad PPA for Iurii Egorov" imported gpg: Total number processed: 1 gpg: imported: 1 $ sudo apt-get update Hit:1 http://security.ubuntu.com/ubuntu noble-security InRelease Ign:2 http://packages.linuxmint.com wilma InRelease Hit:3 http://packages.linuxmint.com wilma Release Hit:4 http://archive.ubuntu.com/ubuntu noble InRelease Hit:6 http://archive.ubuntu.com/ubuntu noble-updates InRelease Get:7 https://ppa.launchpadcontent.net/amnezia/ppa/ubuntu noble InRelease [17.8 kB] Err:7 https://ppa.launchpadcontent.net/amnezia/ppa/ubuntu noble InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4166F2C257290828 Hit:8 http://archive.ubuntu.com/ubuntu noble-backports InRelease Reading package lists... Done W: GPG error: https://ppa.launchpadcontent.net/amnezia/ppa/ubuntu noble InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4166F2C257290828 E: The repository 'https://ppa.launchpadcontent.net/amnezia/ppa/ubuntu noble 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. ``` Is there another step needed to update/use the public key?
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
amnezia-vpn/amneziawg-linux-kernel-module#274
No description provided.