--- a/debian-apt.rst Tue Jun 09 14:40:07 2009 +0300
+++ b/debian-apt.rst Tue Jun 09 14:42:23 2009 +0300
@@ -26,3 +26,24 @@
deb http://www.backports.org/debian/ etch-backports main contrib non-free
+* Getting new keys for packages.
+
+ $ sudo apt-get update
+...
+W: There is no public key available for the following key IDs:
+9AA38DCD55BE302B
+W: GPG error: http://http.us.debian.org etch Release: The following signatures
+couldn't be verified because the public key is not available: NO_PUBKEY
+9AA38DCD55BE302B
+...
+
+ $ gpg --keyserver pgp.mit.edu --recv-key 9AA38DCD55BE302B \
+--keyserver-options http-proxy=http://user:pass@192.168.1.1:3128
+gpg: requesting key 55BE302B from hkp server pgp.mit.edu
+gpg: key 55BE302B: public key "Debian Archive Automatic Signing Key (5.0/lenny) <ftpmaster@debian.org>" imported
+gpg: no ultimately trusted keys found
+gpg: Total number processed: 1
+gpg: imported: 1 (RSA: 1)
+
+ $ gpg --export 9AA38DCD55BE302B | sudo apt-key add -
+OK