apt-get update errors on debian server – signature couldn’t be verified because the public key is not available

I was running into Warnings and Errors while executing an apt-get update on a debian server.

W: GPG error: http://ftp.us.debian.org squeeze Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY AED4B06F473041FA NO_PUBKEY 64481591B98321F9
W: GPG error: http://security.debian.org squeeze/updates Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY AED4B06F473041FA
W: GPG error: http://ftp.us.debian.org squeeze-updates Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8B48AD6246925553

In computers based on a Debian operating system that uses Linux kernel, error messages may come up like ‘NO_PUBKEY’.This happens while using the Apt-Get command line tool and this error is associated with the tool’s update feature. The new feature in the Apt-Get package management tool guarantees the authenticity of the server before updating the Debian OS. That’s why the error ‘NO_PUBKEY’ pops up. This problem can be solved by keying in the appropriate commands. The fix for this is to re-download the keys using the hexidecimal numbers given in the error.

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 64481591B98321F9 AED4B06F473041FA 8B48AD6246925553

You should see a similar looking out put

Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /etc/apt/secring.gpg --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv-keys 64481591B98321F9 AED4B06F473041FA 8B48AD6246925553
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