Debian Testing apt-get update Breaks, NO_PUBKEY (tummy.com, ltd. Journal Entry)
tummy.com: we do linux

Friday January 06, 2006 at 01:29
Subject: Debian Testing apt-get update Breaks, NO_PUBKEY
Keywords: debian secure apt apt-get update testing technical
Posted by: Scott Kleihege

As of November 1st, 2005, debian testing has finally switched to a new version of apt that uses gpg key signatures for secure verification of packages (see the announcement). Unfortunately, package updates released since the new year have been signed with a new key, causing some error messages when updating.

Here's the error message I saw when trying to apply the most recent updates:

# apt-get update
Get:1 http://mirrors.tummy.com testing Release.gpg [378B]
Hit http://mirrors.tummy.com testing Release
Hit http://mirrors.tummy.com testing/main Packages
Hit http://mirrors.tummy.com testing/main Sources
Fetched 378B in 0s (3567B/s)
Reading package lists... Done
W: GPG error: http://mirrors.tummy.com testing Release: The following 
signatures couldn't be verified because the public key is not available: 
NO_PUBKEY 010908312D230C5F
W: You may want to run apt-get update to correct these problems

After being frustrated by stale google results, I turned to the Technocrati blog search engine. Fortunately, someone has already figured out the fix.

As root run:

wget http://ftp-master.debian.org/ziyi_key_2006.asc -O - | apt-key add -

or, if you're using sudo:

sudo wget http://ftp-master.debian.org/ziyi_key_2006.asc -O - | sudo apt-key add -

Have a happy and secure year!


(Post Reply)
Comment
Author: Tkil
Subject: unnecessary sudo?
Is that first 'sudo' necessary, on your second variant?
Comment
Mark
Subject: Thanks!
See, Google really is my friend, cause he made me find this page and thus solve the problem. Thanks! :)
Comment
Will Roberts
Subject: Thanks for the tip
That message has been bugging me for days, thanks for the tip on how to correct it.
Comment
Alex
Subject: Thanks for the tip
Thanks. Fixed my problem right away.
Comment
Rodrigo
Subject: Thanks!!
I've fixed my problem!! Thanks a lot!!
Comment
Richard
Subject: necessary sudo
Sudo is a program for non-root users to execute commands as root. see also apt-cache show sudo
Comment
Syncros
Subject: apt-key
apt-key (8)          - APT key management utility

update      Update the local keyring with the keyring of Debian archive keys
            and  removes  from  the  keyring  the  archive keys which are no
            longer valid.
               
            
Comment
Gieron
Subject: Great line
Many thanks. I have had this problem a long time on one of my computers. I always thought it would be hard to fix. But now it's running apt-get upgrade as if nothing happened.