Home » Linux

Debian: fixing GPG error on apt-get update

2 June 2009 One Comment

If you get a GPG error when doing an apt-get update, here’s the quickest way to fix it.The error message looks similar to:

W: GPG error: http://security.debian.org etch/updates Release:
The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY XXXXXXXXXXX: There is no public key available for the following key IDs: W: You may want to run apt-get update to correct these problems

By default, it says “You may want to run apt-get update to correct these problems”. The problem is, apt-get update doesn’t fix the keys automagically. To fix, you will need to update the debian keyring by typing:

apt-get install debian-archive-keyring

After installing the keyring, you will get a list of keys that were updated, added, or deleted. This should resolve the problem. It worked for me on apt-get update for an etch install that broke.

One Comment »

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.

*