Debian Apt-get Error

有時不知道為什麼當用apt-get update & apt-get upgrade 時個server 出現以下error


W: GPG error: http://ftp2.de.debian.org sarge/volatile Release: The following signatures couldn\'t be verified because the public key is not available: NO_PUBKEY 7EF7FFF4276981F4
W: GPG error: ftp://ftp.nerim.net etch Release: The following signatures couldn\'t be verified because the public key is not available: NO_PUBKEY 07DC563D1F41B907
W: You may want to run apt-get update to correct these problems


不過之後看到以下兩篇文章之後便明白了。

http://www.linuxquestions.org/questions/history/374070
http://moto.chuany.net/viewtopic.php?p=42355

1. gpg --keyserver wwwkeys.eu.pgp.net --recv-keys xxxxxxxx
2. gpg --keyserver wwwkeys.eu.pgp.net --recv-keys yyyyyyyy
3. gpg --armor --export xxxxxxxx | sudo apt-key add -
4. gpg --armor --export yyyyyyyy | sudo apt-key add -


而xxxxxxxx 和 yyyyyyyy 是 NO_PUBKEY 之後那堆數字數字


Comments

Popular Posts