http://wiki.debian.org/SecureApt#Howtofindakey
使用apt-get update後出現的Error
W: GPG error: http://ftp.tw.debian.org etch Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9AA38DCD55BE302B
Method1:
debian:
# gpg --keyserver subkeys.pgp.net --recv-keys 金鑰
Ubuntu:
# gpg --keyserver keyserver.ubuntu.com --recv 金鑰
# gpg --export --armor 金鑰 | sudo apt-key add -
Method2:
http://wwwkeys.pgp.net/
Get "newkey" and save
# apt-key add "newkey"
加入CD-ROM至sourcelist
# apt-cdrom add
我的sources.list (Debian 4.0)
deb http://ftp.tw.debian.org/debian/ etch main contrib non-free
deb-src http://ftp.tw.debian.org/debian/ etch main contrib non-free
deb http://security.debian.org etch/updates main contrib non-free
deb-src http://security.debian.org etch/updates main contrib non-free
如何方便找到最佳站台
有時候安裝時,因為無相對應的Ethernet Driver,所以不能設定站台,變成要安裝好後,再手動安裝。
1. 因為剛裝好時只有DVD的dpkg可以用...所以就將安裝驅動所需的套件安裝起來
ex : gcc, linux-headers, make, autoconf...
2. 安裝Ethernet Driver (略)
3. 先設定簡易的站台,不然沒有netselect-apt可用
~$ vi /etc/apt/source.list
加入下面這兩句,就可以有最基本的套件用,我這邊是用Debian 5.0,所以是lenny
deb http://ftp.tw.debian.org/debian/ lenny main
deb-src http://ftp.tw.debian.org/debian/ lenny main
4. 更新list以及下載netselect-apt
~$ apt-get update
~$ apt-get install netselect-apt
~$ netselect-apt -s -n
-s : source
-n : non-free
5. 檢查新產生的sources.list是不是沒問題,ok的話就取代原先的sources.list
~$ cp sources.list /etc/apt/
~$ apt-get update