前幾天學校的server在下了update的指令後出現了
W: GPG error: ftp://www.hk.debian.org unstable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F1D53D8C4F368D5D NO_PUBKEY 010908312D230C5F
W: You may want to run apt-get update to correct these problems
在爬了一下文之後知道是因為我的keys需要更新
因此就參照大家說的打上
# gpg --keyserver wwwkeys.eu.pgp.net --recv-keys F1D53D8C4F368D5D
# gpg --armor --export F1D53D8C4F368D5D | apt-key add -
又重新下了一次apt-get update
ok了,順利的跑完了,就開心的放假去了…
今天星期一回來學校又下了一次apt-get update,它卻給我出現別的錯誤><
W: GPG error: http://debian.linux.org.tw testing Release: The following signatures were invalid: BADSIG 010908312D230C5F Debian Archive Automatic Signing Key (2006) <ftpmaster@debian.org>
W: You may want to run apt-get update to correct these problems
心想是不是又keys的問題,所以又爬了一下文,找到一些資料照著上面說的做了~
# apt-key list 查一下我的keys
/etc/apt/trusted.gpg
--------------------
pub 1024R/1DB114E0 2004-01-15 [expired: 2005-01-27]
uid Debian Archive Automatic Signing Key (2004) <ftpmaster@debian.org>
pub 1024D/4F368D5D 2005-01-31 [expired: 2006-01-31]
uid Debian Archive Automatic Signing Key (2005) <ftpmaster@debian.org>
pub 1024D/2D230C5F 2006-01-03 [expires: 2007-02-07]
uid Debian Archive Automatic Signing Key (2006) <ftpmaster@debian.org>
pub 1024D/B5F5BBED 2005-04-24
uid Debian AMD64 Archive Key <debian-amd64@lists.debian.org>
sub 2048g/34FC6FE5 2005-04-24
然後下
# apt-key update
gpg: key 1DB114E0: "Debian Archive Automatic Signing Key (2004) <ftpmaster@debian.org>" not changed
gpg: key 4F368D5D: "Debian Archive Automatic Signing Key (2005) <ftpmaster@debian.org>" not changed
gpg: key B5F5BBED: "Debian AMD64 Archive Key <debian-amd64@lists.debian.org>" not changed
gpg: key 2D230C5F: "Debian Archive Automatic Signing Key (2006) <ftpmaster@debian.org>" not changed
gpg: Total number processed: 4
gpg: unchanged: 4
就網路上大大們的文章…都是在做完這步驟後就ok了
但我卻還是不行…一直出現
BADSIG 010908312D230C5F
= =到底為什麼呢@@
會跟我/etc/apt/sources.list內的站台設定有關係嗎?
sources.list的內容是
deb http://debian.linux.org.tw/debian/ stable main
deb-src http://debian.linux.org.tw/debian/ stable main
deb http://debian.linux.org.tw/debian/ testing main
deb-src http://debian.linux.org.tw/debian/ testing main