In new versions of apt. GPG signature checking is enabled by default. This is a good thing, allowing us trust the packages we are installing on our system. But if you recently updgraded apt it will begin to complain about not being able to find the pubkey. It should look something like this.
W: GPG error: http://mirrors.kernel.org testing Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 010908312D230C5F
Now I just recently got sick of seeing this message and decided I should really get this working for security reasons. That being said I am a bit new to this. There are many documents out there on how to get this working, I am just documenting different things I did and found. Hopefully once I fully understand the process I will clean this up.
First, you will need to have a 0.6 version of apt and gnupgp installed.
Once you have that an easy way to try and fix this problem is install the debian-keyring.
apt-get install debian-keyring
Now we can import the key using apt-key.
apt-key add /usr/share/keyrings/debian-keyring.gpg
apt-key add /usr/share/keyrings/debian-role-keys.gpg
Now I am really not sure what the difference is between them.
This fixed my message of NO_PUBKEY for ftp.nerim.net
If you don’t have this in your sources.list and its a desktop. I really would add this, alot of video and media type debs that debian does not carry. Link below:
Ok, back to buisness. apt is still complaining about my kernel.org mirror.
I read somewhere that a new key will added every year on the year. Somehow I did not have that new key from the debian-keyring package. So lets go get it.
Now I just added it with apt-key but you could just do it with gpg.
gpg –import ziyi_key_2006.asc
apt-key add ziyi_key_2006.asc
Now apt-get update and it should be fixed. Like I said earlier, I’m a little unclear about this whole process. I would have thought downloading the whole debian-keyring would have done it. It is even over kill becuase I really only needed a couple of keys.