[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Apt-Get Suggestion



Apt-get is an excellent utility but I have a suggestion for a future
version. Could apt-get display something like this:


Reading package lists... Done
W: GPG error: http://kanotix.com ./ Release: The following signatures
couldn't be verified because the public key is not available: 
NO_PUBKEYFB1A399A71409CDF
W: GPG error: http://www.stanchina.net ./ Release: The following
signatures couldn't be verified because the public key is not available: 
NO_PUBKEY 3DCCCCACE46F104F
W: GPG error: http://hinterhof.net ./ Release: The following signatures
couldn't be verified because the public key is not available: 
NO_PUBKEY A0E41455F530F04D

Would you like apt-get to automatically correct these GPG errors [N/y]?


If the user typed a "y" and then hit "enter" apt-get would parse the
last 8 characters in the "NO_PUBKEY" numbers above and then run this code:

gpg --keyserver wwwkeys.eu.pgp.net --recv-keys 71409CDF E46F104F F530F04D
&& apt-key add /root/.gnupg/pubring.gpg && apt-get update

Or if that isn't a good idea maybe apt-get could display this:


Reading package lists... Done
W: GPG error: http://kanotix.com ./ Release: The following signatures
couldn't be verified because the public key is not available: 
NO_PUBKEYFB1A399A71409CDF
W: GPG error: http://www.stanchina.net ./ Release: The following
signatures couldn't be verified because the public key is not available: 
NO_PUBKEY 3DCCCCACE46F104F
W: GPG error: http://hinterhof.net ./ Release: The following signatures
couldn't be verified because the public key is not available: 
NO_PUBKEY A0E41455F530F04D

These GPG errors can be corrected by running:
gpg --keyserver wwwkeys.eu.pgp.net --recv-keys 71409CDF E46F104F F530F04D 
&& apt-key add /root/.gnupg/pubring.gpg && apt-get update


I think this would make GPG errors a little bit easier to deal with.
Ken



Reply to: