Re: [SLUG] apt errors return

From: Ian C. Blenke (ian@blenke.com)
Date: Fri Mar 23 2007 - 20:30:05 EST


Paul M Foster wrote:
>> So, it looks as if the problem may lie in /etc/apt/sources.list .
>> Some of the lines, when enabled, complain about GPG. I have GPG; how
>> do I set it up so apt is happy?
> I have gpg as well, and I still get these messages. And FWIW, I've
> never had more dependency problems with anything than I have had with
> X. Particularly when Debian switch from X 6.XX to 7.XX, I had to dump
> X and all dependent programs, and reinstall them all from scratch.
> That's not pertinent to the X devel toolchain, but...

If you mean messages like this:

W: GPG error: ftp://ftp.gwdg.de testing Release: The following
signatures couldn't be verified because the public key is not
available: NO_PUBKEY BB5E459A529B8BDA

The easiest way to "fix" these is to import the GPG keys from a gpg key server.

Here's a script I use on my workstation builds to import keys:

        for key in BB5E459A529B8BDA 3FF0DB166A7476EA CC919A31E23C5FC3
58403026387EE263 ; do
                for server in tickets.rutgers.edu pgp.mit.edu
keyserver.veridis.com pgp.keyserver.ch pgp.surfnet.nl www.stinkfoot.org
pgp.es.net pgp.rediris.es pgp.nic.ad.jp pgp.uk.demon.net
pgp.zdv.uni-mainz.de keyserver.linux.it keys.iif.hu
pgp.eteo.mondragon.edu; do
                        if gpg --keyserver $server --recv-key $key >
/dev/null 2>&1 ; then
                                gpg -armor --export $key | apt-key add - ;
                                break ;
                        fi ;
                done ;
        done

It's far easier to find these gpg keys on gpg keyservers than to hunt
down a public key http:// url posted by the signing author somewhere on
the 'net.

- Ian C. Blenke <ian@blenke.com> <icblenke@nks.net>

-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 15:53:30 EDT