Debian - Apt-get : NO_PUBKEY / GPG error


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.

[Debian] Apt-get : NO_PUBKEY / GPG error




Issue


When updating the Debian based system, apt-get may display an error message like:


W: GPG error: ftp://ftp.debian.org/ testing Release:      
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 010908312D230C5F     

W: There is no public key available for the following key IDs:     
010908312D230C5F


This is a new feature of the apt-get system that guarantees the authenticity of servers for updating Debian.

Solution


Simply type the following commands, taking care to replace the number below with that of the key that was displayed in the error message:
gpg --keyserver pgpkeys.mit.edu --recv-key  010908312D230C5F     
gpg -a --export 010908312D230C5F | sudo apt-key add -
Published by netty5 - Last update on February 17, 2012 01:38 AM by Paul Berentzen
This document entitled « Debian - Apt-get : NO_PUBKEY / GPG error » from Kioskea.net (en.kioskea.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the licence, as this note appears clearly.
Suggestions
  •  Debian - Apt-get : NO_PUBKEY / GPG error
  •  Install Flash player under Debian » Tips : Debian is an open source operating system that uses the Linux kernel.This OS supports a number of plug-ins which can make the user experience better. The flash player plug in can also be installed on Debian based computers which will make viewing of...
  •  Facebook certificate error » Tips : Social media websites like Facebook which support the SSL protocol are subjected to digital certificates, ascertaining web server identifications to internet connection requests from web browsers. Some discrepancies occur, resulting in non...
  •  Rundll error » Tips : Rundll.exe files are tied directly to the Windows registry file system. DLL (Dynamic Link Library) files are an important part of your computer which contain data and code shared by number of programmes. They are created to help the computer...
  •  A disk read error occurred press ctrl alt del to restart (Solved) » Best answer: This is one of the most frustrating error messages you can ever deal with. Sometimes the fix is simple, sometimes it's a complete pain. Having recently dealt with this again, I thought I'd post my thoughts in the hopes that it helps someone e
  •  Nginx error » Tips : Sometimes, the Google homepage may not open and instead show a nginx 404 Google error. Users may be unable to access Google and Youtube. This problem occurs because of a hidden Trojan that affects the HOST file of a computer whose security has been...
Securing your Debian system
Debian - Listing packages installed