GPG errorからの回復メモ

VMware Player 2.5.2で動作しているDebianの「aptitude update」で「GPG error」が発生。
回復作業時の備忘録として残すことにします。

debian:~# aptitude update
省略
Reading package lists... Done
W: GPG error: http://ftp.jp.debian.org etch Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9AA38DCD55BE302B
W: There is no public key available for the following key IDs:
9AA38DCD55BE302B
W: You may want to run apt-get update to correct these problems

「GPG error」が発生しました。
そこで公開キー登録します。

debian:~# gpg --keyserver wwwkeys.eu.pgp.net --recv-keys 9AA38DCD55BE302B
gpg: requesting key 55BE302B from hkp server wwwkeys.eu.pgp.net
gpg: /root/.gnupg/trustdb.gpg: trustdb created
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)
debian:~# gpg --armor --export 9AA38DCD55BE302B | apt-key add -
OK

再度「aptitude update」実行してみます。

debian:~# aptitude update
Ign cdrom://[Debian GNU/Linux 4.0 r2 _Etch_ - Official i386 NETINST Binary-1 20080103-00:44] etch Release.gpg
Ign cdrom://[Debian GNU/Linux 4.0 r2 _Etch_ - Official i386 NETINST Binary-1 20080103-00:44] etch Release
Ign cdrom://[Debian GNU/Linux 4.0 r2 _Etch_ - Official i386 NETINST Binary-1 20080103-00:44] etch/contrib Packages/DiffIndex
Ign cdrom://[Debian GNU/Linux 4.0 r2 _Etch_ - Official i386 NETINST Binary-1 20080103-00:44] etch/main Packages/DiffIndex
Get:1 http://ftp.jp.debian.org etch Release.gpg [1032B]                  
Hit http://ftp.jp.debian.org etch Release                                       
Ign http://ftp.jp.debian.org etch/main Packages/DiffIndex                     
Ign http://ftp.jp.debian.org etch/main Sources/DiffIndex 
Hit http://ftp.jp.debian.org etch/main Packages          
Hit http://ftp.jp.debian.org etch/main Sources
Get:2 http://security.debian.org etch/updates Release.gpg [1032B]
Hit http://security.debian.org etch/updates Release
Ign http://security.debian.org etch/updates/main Packages/DiffIndex
Ign http://security.debian.org etch/updates/contrib Packages/DiffIndex
Ign http://security.debian.org etch/updates/main Sources/DiffIndex
Ign http://security.debian.org etch/updates/contrib Sources/DiffIndex
Hit http://security.debian.org etch/updates/main Packages
Hit http://security.debian.org etch/updates/contrib Packages
Hit http://security.debian.org etch/updates/main Sources
Hit http://security.debian.org etch/updates/contrib Sources
Fetched 1033B in 1s (729B/s)
Reading package lists... Done

やれやれ、成功しました。