Adding GPG key in Ubuntu


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

W: GPG error: http://packages.medibuntu.org 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 http://packages.medibuntu.org maverick Release.
To solve this, you need to run following commands:

gpg --keyserver keyserver.ubuntu.com --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.

Subscribe / Share

Article by Vidyadhar

My name is Vidyadhar Sarmalkar & I work as a consultant and have done RHCE & CCNA.
Vidyadhar tagged this post with: , , , , , , , , , Read 229 articles by

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">

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

rss twitter facbook

Categories

Archives

Buffer