Today while updating / installing packages in Ubuntu I got GPG error. Error was,

W: GPG error: maverick Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 2EBC26B60C5A2783

So it was asking me to add GPG key for the repository maverick Release.
To solve this, you need to run following commands:

gpg --keyserver --recv-key 2EBC26B60C5A2783

We got 2EBC26B60C5A2783 from the error.

Now run,

gpg -a --export 2EBC26B60C5A2783 | sudo apt-key add -

This will add gpg key, and then run apt-get update to update your package list.

Adding GPG key in Ubuntu

Leave a Reply

Your email address will not be published. Required fields are marked *

Notify me of followup comments via e-mail. You can also subscribe without commenting.

Recommend on Google