1

Recently I had a lot of GPG errors with the following message

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

I removed them with using What is the easiest way to resolve apt-get BADSIG GPG errors? and with the help from other sites. But now every time I add new PPA and try to update I got the GPG Error for the last added PPA.

Using Y-PPA > Advanced > Try to import all missing GPG keys removes the error/s but it will show again for every new PPA added. Can someone tell me why I got GPG error every time and how to fix it permanently.

using Ubuntu 14.04 x64 EDIT: Problem solved. I was missing /etc/apt/trusted.gpg.d

Tosho
  • 548
  • how many ppas do you have? you can have only so many gpg keys installed. also, how do you add a ppa? sudo add-apt-repository? – mchid Oct 25 '15 at 06:37
  • I have around 40 PPAs , and yes I use sudo add-apt-repository. I didn't have problems two months ago, this thing start to happen in one month maybe. – Tosho Oct 25 '15 at 07:52

1 Answers1

1

The problem is that you have too many ppas.

Apt can only handle 40 keys in /etc/apt/trusted.gpg.d.

Delete some gpg keys and ppas.

See here for some more info.


EDIT

Because you have no /etc/apt/trusted.gpg.d directory, just run the following command to fix the issue:

sudo mkdir /etc/apt/trusted.gpg.d
mchid
  • 43,546
  • 8
  • 97
  • 150