Re: apt-get source produces gpg error. Can't check signature: public key not found
On 2010-01-07 16:37 +0100, Stephen Powell wrote:
> I am trying to get the source code for a Debian package with
> apt-get source xxx
> where xxx is the name of the package. The retrieval of the source package
> appears to have been successful, but I get error messages along the way:
> gpg: new configuration file `/root/.gnupg/gpg.conf' created
Why do you run apt-get source as root?
> gpg: WARNING: options in `/root/.gnupg/gpg.conf' are not yet active during this run
> gpg: Signature made Sun 23 Nov 2008 09:06:32 PM EST using DSA key ID 12066207
> gpg: Can't check signature: public key not found
> Obviously I need to find and import the relevant public key.
> I don't know where to find the key, nor how to import it.
> I searched the internet and found some hits on "gpg 12066207",
> but I could not find specific instructions.
If you want to import the key into your keyring, "gpg --recv-keys" does
that for you. However, this is not necessary.
> (1) Will someone please give me specific instructions on where to
> find the key, and how to install it, and
Install the debian-keyring package.
> (2) Will someone please explain why this key is not already installed,
> since this is an official Debian source package.
Because it is not necessary if you don't work with source packages.