Ошибка gpg http ppa launchpad net

I added some extra repositories with the Software Sources program. But when I reload the package database, I get an error like the following:

W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 8BAF9A6F

I know I can fix it using apt-key in a terminal, according to the official Ubuntu documentation. But I would have liked to do it graphically. Is there a way to do this without using a terminal?

Wilf's user avatar

Wilf

29.5k16 gold badges104 silver badges163 bronze badges

asked Nov 13, 2010 at 20:27

Agmenor's user avatar

8

Execute the following commands in terminal

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys <PUBKEY>

where <PUBKEY> is your missing public key for repository, e.g. 8BAF9A6F.

Then update

sudo apt-get update

ALTERNATE METHOD:

sudo gpg --keyserver pgpkeys.mit.edu --recv-key  <PUBKEY>
sudo gpg -a --export <PUBKEY> | sudo apt-key add -
sudo apt-get update

Note that when you import a key like this using apt-key you are telling the system that you trust the key you’re importing to sign software your system will be using. Do not do this unless you’re sure the key is really the key of the package distributor.

cjs's user avatar

cjs

2941 silver badge13 bronze badges

answered Nov 28, 2010 at 18:49

karthick87's user avatar

karthick87karthick87

80.2k59 gold badges192 silver badges232 bronze badges

19

By far the simplest way to handle this now is with Y-PPA-Manager (which now integrates the launchpad-getkeys script with a graphical interface).

  1. To install it, first add the webupd8 repository for this program:

    sudo add-apt-repository ppa:webupd8team/y-ppa-manager
    
  2. Update your software list and install Y-PPA-Manager:

    sudo apt-get update
    sudo apt-get install y-ppa-manager
    
  3. Run y-ppa-manager (i.e. type y-ppa-manager then press enter key).

  4. When the main y-ppa-manager window appears, click on «Advanced.»

  5. From the list of advanced tasks, select «Try to import all missing GPG keys» and click OK.

    You’re done! As the warning dialog says when you start the operation, it may take quite a while (about 2 minutes for me) depending on how many PPA’s you have and the speed of your connection.

Community's user avatar

answered Dec 4, 2013 at 15:52

monotasker's user avatar

monotaskermonotasker

3,6551 gold badge17 silver badges15 bronze badges

18

It happens when you don’t have a suitable public key for a repository.

To solve this problem use this command:

gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv 9BDB3D89CE49EC21

which retrieves the key from ubuntu key server. And then this:

gpg --export --armor 9BDB3D89CE49EC21 | sudo apt-key add -

which adds the key to apt trusted keys.

The solution can be found here & here & here.

Kevin Bowen's user avatar

Kevin Bowen

19.3k55 gold badges76 silver badges81 bronze badges

answered Mar 27, 2011 at 22:31

Pedram's user avatar

PedramPedram

5,6013 gold badges30 silver badges38 bronze badges

7

You need to get and import the key.

To get the key from a PPA, visit the PPA’s Launchpad page. On every PPA page at Launchpad you will find this link (2), after clicking on ‘Technical details about this PPA’ (1):

image 1

Follow it and click on the key ID link (3):

image 2

Save the page, this is your key file.


Now it’s time to import it:

  • Applications > Software Center,
  • Edit > Software sources...,
  • Enter your password,
  • Go to the Authentication tab and click on Import Key File..., finally
  • Select the saved key file and click on OK.

xiota's user avatar

xiota

4,6795 gold badges24 silver badges53 bronze badges

answered Nov 13, 2010 at 21:04

htorque's user avatar

htorquehtorque

63.7k40 gold badges194 silver badges219 bronze badges

5

note: As of recent versions, it is no longer considered good practice to add PPA keys to the keyring. However, I will leave this answer but apt-key is now deprecated so it is recommended we follow different methods for now.

apt can only handle 40 keys in /etc/apt/trusted.gpg.d . 41 keys and you will get the GPG error «no public key found» even if you go through all the steps to add the missing key(s).

Check to see if there are any unused keys in this file from ppa(s) you no longer use. If all are in use, consider removing some ppa(s) along with the corresponding keyfiles in /etc/apt/trusted.gpg.d

Furthermore, using

sudo apt-key adv

Is considered a security risk and is not recommended as you are «undermining the whole security concept as this is not a secure way of recieving keys for various reasons (like: hkp is a plaintext protocol, short and even long keyids can be forged, …)«. http://ubuntuforums.org/showthread.php?t=2195579

I believe the correct way to add missing keys (for example 1ABC2D34EF56GH78) is

gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv 1ABC2D34EF56GH78
gpg --export --armor 1ABC2D34EF56GH78 | sudo apt-key add -

Benjamin Loison's user avatar

answered Aug 7, 2014 at 22:33

mchid's user avatar

mchidmchid

41.7k6 gold badges93 silver badges146 bronze badges

15

There is a tiny script packaged in the WebUpd8 PPA which I’ll link as a single .deb download so you don’t have to add the whole PPA — which automatically imports all missing GPG keys.

Download and install Launchpad-getkeys (ignore the ~natty in its version, it works with all Ubuntu versions from Karmic all the way to Oneiric). Once installed, open a terminal and type:

sudo launchpad-getkeys

If you’re behind a proxy, things are a bit more complicated so see this for more info

answered Jun 5, 2011 at 20:15

Alin Andrei's user avatar

Alin AndreiAlin Andrei

7,3484 gold badges41 silver badges55 bronze badges

2

I faced the same issue while installing Heroku. The link below solved my problem —

http://naveenubuntu.blogspot.in/2011/08/fixing-gpg-keys-in-ubuntu.html

After fixing the NO_PUBKEY issue, the below issue remained

W: GPG error: xhttp://toolbelt.heroku.com ./ Release: The following signatures were invalid: BADSIG C927EBE00F1B0520 Heroku Release Engineering <release@heroku.com>

To fix it I executed the following commands in terminal:

sudo -i  
apt-get clean  
cd /var/lib/apt  
mv lists lists.old  
mkdir -p lists/partial  
apt-get clean  
apt-get update  

Source — Link to solve it

Community's user avatar

answered Jan 30, 2013 at 17:12

dennyac's user avatar

dennyacdennyac

2175 silver badges7 bronze badges

1

Make sure you have apt-transport-https installed:

dpkg -s apt-transport-https > /dev/null || bash -c "sudo apt-get update; 
sudo apt-get install apt-transport-https -y" 

Add repository:

curl https://repo.skype.com/data/SKYPE-GPG-KEY | sudo apt-key add - 
echo "deb [arch=amd64] https://repo.skype.com/deb stable main" | sudo tee /etc/apt/sources.list.d/skype-stable.list 

Install Skype for Linux:

sudo apt-get update 
sudo apt-get install skypeforlinux -y

Source: https://community.skype.com/t5/Linux/Skype-for-Linux-Beta-signatures-couldn-t-be-verified-because-the/td-p/4645756

answered May 27, 2017 at 20:00

Eduardo Cuomo's user avatar

More generally, the following method should work for every repository. First of all search, with eventual help of a search engine, for a text on the program provider’s website looking like the following:

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.1 (GNU/Linux)
[...]
-----END PGP PUBLIC KEY BLOCK-----

Such a text is for example displayed on http://deb.opera.com. Copy the passage, paste it in an empty file that you create on your desktop. This results in the key file.

Then continue with the importation of the key:

  • Applications > Sofware Center
  • Edit > Sofware sources…, enter password
  • Authentication tab, click on ‘Import Key File…’
  • Select the saved key file and click on ‘Ok’.

You may now remove the previously created key file.

answered Nov 13, 2010 at 21:43

Agmenor's user avatar

AgmenorAgmenor

15.8k18 gold badges67 silver badges103 bronze badges

0

This error can also occur when the apt list file by the PPA points to a local keyring, like

deb [signed-by=/usr/share/keyrings/SOMETHING.gpg] https://download.something.org/something something/

And while that file may exist on your system (possibly downloaded with a prior command), it may be unreadable due to missing permissions. I just fixed this kind of error by running

chmod 644 /usr/share/keyrings/*

after having fetched the keyring file. The underlying issue was the usage of sudo when I already was root user. Really weird as all of this is root anyway and there was no access permission failure message anywhere… but that fixed it

answered Jun 12, 2020 at 12:28

phil294's user avatar

phil294phil294

5698 silver badges18 bronze badges

1

Good! I finaly found the way!

I’ve tested all method’s to fix GPG error NO_PUBKEY and nothing working for me.

I’ve deleted the entire contents of the folder /etc/apt/trusted.gpg.d

cd /etc/apt/trusted.gpg.d
sudo rm -R *
sudo apt-get update

And I use the Y-PPA-Manager method because I’m too lazy to create all pubkey’s manually (too many): http://www.unixmen.com/fix-w-gpg-error-no_pubkey-ubuntu/

run sudo apt-get update again and finaly all work great now! Tanks!

Based Source : post #17 on https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1263540

answered Apr 8, 2015 at 13:36

NeurOSick's user avatar

4

Updated version (Ubuntu 22.04 LTS)

Because apt-key is deprecated now, and you want to use /etc/apt/trusted.gpg.d/, you can use

sudo gpg --keyserver pgpkeys.mit.edu --recv-key <PUBKEY>
sudo gpg -a --export <PUBKEY> | sudo gpg --dearmour -o /etc/apt/trusted.gpg.d/<target name>.gpg

<PUBKEY> is the 8 character fingerprint like 210976F2 and <target name> is a name of your choice by which you will know that key.

answered May 23 at 11:31

smido's user avatar

smidosmido

1435 bronze badges

0

I had the same problem with DynDNS’s Updater client.

Turns out it was just expired keys.

Reinstalling the software (downloading a new .deb from the website, then using Software Centre to reinstall) fixed the problem.

Error message for reference:

W: GPG error: http://cdn.dyn.com stable/ Release: The following signatures were invalid: KEYEXPIRED 141943.......

kos's user avatar

kos

35.4k13 gold badges101 silver badges150 bronze badges

answered Jan 8, 2015 at 16:53

Cranky's user avatar

CrankyCranky

4445 silver badges11 bronze badges

2021 August. This is what worked for me.

cd /etc/apt/trusted.gpg.d
sudo rm -R *
sudo apt-get update

The last line will raise errors of missing keys.

What you’d then have to do is manually install each of the keys listed in the errors
for example if the error is saying that your missing PUB_KEY is 9BDB3D89CE49EC21,

You can manually add the Key with the command sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 9BDB3D89CE49EC21

Re-run sudo apt-get update

Repeat the process for the new key raised in the error

Say if the new key was 3BDB3D89CE49EC24,
Just Manually add the Key with the command sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3BDB3D89CE49EC24

Re-run sudo apt-get update and repeat the process until all the errors are gone.

Then go back to the package site you were trying to install and repeat the installation process.

For my case, the error was coming while I tried installing Sublime Text
Doing the above and returning to the Sublime installation guide here solved the issues.

Don’t forget to upvote if this works for you. And it must do

answered Aug 29, 2021 at 6:20

NMukama's user avatar

NMukamaNMukama

3261 silver badge13 bronze badges

GPG error on ubuntu

Get:55 http://archive.ubuntu.com trusty-security/multiverse Translation-en [2,570 B]
Get:56 http://archive.ubuntu.com trusty-security/restricted Translation-en [3,206 B]
Get:57 http://archive.ubuntu.com trusty-security/universe Translation-en [75.8 kB]
Hit http://archive.ubuntu.com trusty Release
Hit http://archive.ubuntu.com trusty/main Sources
Hit http://archive.ubuntu.com trusty/restricted Sources
Hit http://archive.ubuntu.com trusty/universe Sources
Hit http://archive.ubuntu.com trusty/universe i386 Packages
Hit http://archive.ubuntu.com trusty/multiverse i386 Packages
Hit http://archive.ubuntu.com trusty/multiverse Translation-en
Hit http://archive.ubuntu.com trusty/restricted Translation-en
Hit http://archive.ubuntu.com trusty/universe Translation-en
Ign http://archive.ubuntu.com trusty/main Translation-en_IN
Ign http://archive.ubuntu.com trusty/multiverse Translation-en_IN
Ign http://archive.ubuntu.com trusty/restricted Translation-en_IN
Ign http://archive.ubuntu.com trusty/universe Translation-en_IN
Fetched 5,467 kB in 1min 5s (82.9 kB/s)
Reading package lists… Done
W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY FE1FFCE65CB95493

The above error occured when i ran sudo apt-get update on Ubuntu 14.04. After fetching the required updates it showed me an error at the bottom — W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY FE1FFCE65CB95493

Obviously , The solution is , we need to download keys from Ubuntu key server..
Now, see how to do that..

All You have to do to solve this problem is.. open the terminal and run the following command..

gpg --keyserver subkeys.pgp.net --recv FE1FFCE65CB95493 && gpg --export --armor FE1FFCE65CB95493 | sudo apt-key add -

Friends , Don’t forget to replace the FE1FFCE65CB95493 with the one included in your error message

However , i got timed out error, first time, when i ran this (gpg —keyserver subkeys.pgp.net —recv FE1FFCE65CB95493) .. but when i ran it second time ,it just works fine for me.. Hope it will be usefull.. Share it with your friends..

shivaraj@shivaraj-A14RM0E:~$ gpg —keyserver subkeys.pgp.net —recv FE1FFCE65CB95493
gpg: directory `/home/shivaraj/.gnupg’ created
gpg: new configuration file `/home/shivaraj/.gnupg/gpg.conf’ created
gpg: WARNING: options in `/home/shivaraj/.gnupg/gpg.conf’ are not yet active during this run
gpg: keyring `/home/shivaraj/.gnupg/secring.gpg’ created
gpg: keyring `/home/shivaraj/.gnupg/pubring.gpg’ created
gpg: requesting key 5CB95493 from hkp server subkeys.pgp.net

gpg: keyserver timed out
gpg: keyserver receive failed: keyserver error
shivaraj@shivaraj-A14RM0E:~$ gpg —keyserver subkeys.pgp.net —recv FE1FFCE65CB95493
gpg: requesting key 5CB95493 from hkp server subkeys.pgp.net
gpg: /home/shivaraj/.gnupg/trustdb.gpg: trustdb created
gpg: key 5CB95493: public key «Launchpad PPA for Vincent Cheng» imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
shivaraj@shivaraj-A14RM0E:~$ gpg —export —armor FE1FFCE65CB95493 | sudo apt-key add —
OK

You can do it in GUI way.. You can Find Gui method here..

And see Other Ubuntu Related posts and More Popular posts on opensource ..

вообще ошибка вызвана тем, что истёк срок действия ключа, которым подписан файл Release (т.е., другими словами, «подпись репозитория»):

W: GPG error: http://ppa.launchpad.net/aims/sagemath/ubuntu raring Release: The following signatures were invalid: C5ACDE79014125D8F25B843ABDCB16CCBE796FF2
E: The repository 'http://ppa.launchpad.net/aims/sagemath/ubuntu raring Release' is not signed.

версия 13.04 (кодовое имя raring) вышла в 2013 году (а поддержка её закончилась в 2014). вряд ли вы используете эту версия дистрибутива.

выберите свою версию дистрибутива из тех, для которых есть пакеты в нужном вам репозитории. впрочем, репозиторий давно не поддерживается (судя по опубликованным там версиям — самая «свежая» для yaketty), и если версия вашего дистрибутива новее чем 16.10 (кодовое имя yaketty), то если пакеты даже и установятся, совсем не факт, что программы из них заработают (понятно, что в sources.list надо будет указать xenial — это lts-версия).


если же у вас на самом деле ubuntu 13.04, то, ввиду того, что подпись репозитория для этой версии уже «протухла», можете отключить проверку подписи, добавив [trusted=yes] в его описание:

deb [trusted=yes] http://ppa.launchpad.net/aims/sagemath/ubuntu raring main

Это упрощенная версия ответа Аникета:

for fingerprint in 40976EAF437D05B5 3B4FE6ACC0B21F32; do
  curl "http://keyserver.ubuntu.com/pks/lookup?op=get&fingerprint=on&search=0x$fingerprint" | 
    awk '/-----BEGIN PGP/{p=1} /-----END PGP/{print; p=0} p==1{print}' > key.txt;
  sudo apt-key add key.txt;
done

Поместите столько ключей, сколько вам нужно в этой первой строке.

Я добавил посторонние точки с запятой, чтобы вы могли сделать это однострочным, чтобы поместить в Dockerfile, Я понятия не имею, почему ранее работающая сборка контейнера теперь требует этого. Я получил эту ошибку до исправления:

W: GPG error: http://deb.nodesource.com trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1655A0AB68576280
W: GPG error: http://archive.ubuntu.com trusty-updates InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
W: GPG error: http://archive.ubuntu.com trusty-backports InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
W: GPG error: http://security.ubuntu.com trusty-security InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
W: GPG error: http://archive.ubuntu.com trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32

When attempting to install packages or perform updates with Synaptic or from command line, the following warning is displayed:

W: GPG error: http://ppa.launchpad.net intrepid Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY XXXXXXXXXXX

Solution:

Please follow the instructions here for adding the keys for the PPA’s that you are using:
https://help.launchpad.net/Packaging/PPA#Adding%20a%20PPA%20to%20your%20Ubuntu%20repositories

————-
Example:
—————

On update if you get an error like this…

GPG error: http://ppa.launchpad.net jaunty Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY D0D3C959DB2035A6

Then you have to add the missing GPG key:

Open a Terminal from the menu Applications → Accessories → Terminal and type or better copy and paste a row a time then press enter:

sudo apt-key adv —recv-keys —keyserver keyserver.ubuntu.com D0D3C959DB2035A6

Then type: (when the system ask you a password give your user password, you will not see nothing when you type it, then press enter)

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

to update your system.

  • Ошибка gpg astra linux
  • Ошибка gow exe не является приложением win32
  • Ошибка gothicstarter запрошенная операция требует повышения
  • Ошибка gothic 3 cant open configfile
  • Ошибка google services framework на андроид