h1

Solving “NO_PUBKEY” error in APT

October 4, 2007

Sometimes when i use ‘apt-get update’ i receive an error like this:

W: GPG error: http://mirrors.dk.telia.net testing Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 010908312D230C5F

To fix this,  copy the number (010908312D230C5F in the example) and type:

  • gpg –keyserver subkeys.pgp.net –recv [NUMBER]
  • gpg –export –armor [NUMBER] | apt-key add –

Then, let try “apt-get update” again.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: