"apt-get install" error, no public key

Hi all,

I got a problem while I was trying to update the package database.

When I ran the command apt-get update, I got something like error the public key is not available. the suggestion from the system was running a command "apt-get -f install". I found that there is no difference after performing the suggested command.

Can anyone help on this?
Below is the output message from my system.

dfserver:~# apt-get update
下載:1 ftp://ftp.hk.debian.org testing Release.gpg [189B]
下載:2 http://security.debian.org testing/updates Release.gpg [189B]
已有 ftp://ftp.hk.debian.org testing Release
略過 ftp://ftp.hk.debian.org testing Release
已有 ftp://ftp.hk.debian.org testing/main Packages
已有 http://security.debian.org testing/updates Release
略過 http://security.debian.org testing/updates Release
略過 http://security.debian.org testing/updates/main Packages
已有 http://security.debian.org testing/updates/main Packages
讀取 378B 用了 1s (260B/s)
讀取套件清單中... 完成
W: GPG error: ftp://ftp.hk.debian.org testing Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 010908312D230C5F
W: GPG error: http://security.debian.org testing/updates Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 010908312D230C5F
W: 用『apt-get -f install』指令或許能修正這些問題。

dfserver:~# apt-get -f install
讀取套件清單中... 完成
了解套件依存關係中... 完成
更新 0 個套件,新安裝 0 個套件,刪除 0 個套件,另不更新 441 個套件。

dfserver:~# apt-get update
下載:1 ftp://ftp.hk.debian.org testing Release.gpg [189B]
已有 ftp://ftp.hk.debian.org testing Release
略過 ftp://ftp.hk.debian.org testing Release
已有 ftp://ftp.hk.debian.org testing/main Packages
下載:2 http://security.debian.org testing/updates Release.gpg [189B]
已有 http://security.debian.org testing/updates Release
略過 http://security.debian.org testing/updates Release
略過 http://security.debian.org testing/updates/main Packages
已有 http://security.debian.org testing/updates/main Packages
讀取 378B 用了 4s (83B/s)
讀取套件清單中... 完成
W: GPG error: ftp://ftp.hk.debian.org testing Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 010908312D230C5F
W: GPG error: http://security.debian.org testing/updates Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 010908312D230C5F
W: 用『apt-get -f install』指令或許能修正這些問題。
dfserver:~#

評論查看選項

選擇你喜歡的顯示回應的模式,並點選「儲存設定」,以啟用你所做的改變。

already answered

This answer already in this page
http://www.debian.org.hk/node/12687

都係唔得, 今次出左呢

都係唔得, 今次出左呢句

Core:~# wget -O - http://ftp-master.debian.org/ziyi_key_2006.asc | apt-key add -
--00:23:03-- http://ftp-master.debian.org/ziyi_key_2006.asc
=> `-'
正在查找主機 ftp-master.debian.org... -bash: apt-key: command not found
140.211.166.43
正在連接 ftp-master.debian.org[140.211.166.43]:80... 連上了。
已送出 HTTP 要求,正在等候回應... 200 OK
長度:2,017 [text/plain]

0% [ ] 0 --.--K/s

無法寫入‘ziyi_key_2006.asc’(中斷的 pipe)。
Core:~#

apt 不夠新

你的 apt 不夠新.. 沒有 apt-key 命令... 先用

apt-get --allow-unauthenticated install apt

更新 apt.. 再按文章的方法去做...

好似越來越多問題咁,

好似越來越多問題咁, 超做就出以下error

Core:~# apt-get --allow-unauthenticated install apt
E: Command line option --allow-unauthenticated is not understood

remove 左個 --allow-unauthenticated install 再做又另一個 error, 頭都大埋

Core:~# apt-get install apt
讀取套件清單中... Done
了解套件依存關係中... Done
下列的【新】套件都將被安裝:
apt-utils aptitude debianutils e2fslibs e2fsprogs gcc-4.0-base initscripts libatk1.0-0 libc6 libc6-dev
libcairo2 libdb4.3 libgcc1 libglade2-0 libglib2.0-0 libglib2.0-dev libgtk2.0-0 libgtk2.0-bin
libgtk2.0-common libncurses5 libncursesw5 libpango1.0-0 libpango1.0-common libsigc++-2.0-0c2a libstdc++6
libxinerama1 libxml2 libxrender-dev libxrender1 locales lsb-base render-dev synaptic sysv-rc
Suggested packages:
dpkg-dev apt-doc gnupg libparse-debianchangelog-perl debtags gpart parted e2fsck-static glibc-doc
manpages-dev libglib2.0-doc ttf-kochi-gothic ttf-kochi-mincho ttf-thryomanes ttf-baekmuk
ttf-arphic-gbsn00lp ttf-arphic-bsmi00lp ttf-arphic-gkai00mp ttf-arphic-bkai00mp dwww apt-watch
sysv-rc-conf bum
Recommended packages:
debian-archive-keyring aptitude-doc-en aptitude-doc libatk1.0-data gcc c-compiler libglib2.0-data
x-ttcidfont-conf libgnome2-perl
下列的套件都將被【刪除】:
base-config initrd-tools kernel-image-2.4.26-1-386
下列的【新】套件都將被安裝:
gcc-4.0-base libcairo2 libdb4.3 libsigc++-2.0-0c2a libstdc++6 libxinerama1 lsb-base
The following packages will be upgraded:
apt apt-utils aptitude debianutils e2fslibs e2fsprogs initscripts libatk1.0-0 libc6 libc6-dev libgcc1
libglade2-0 libglib2.0-0 libglib2.0-dev libgtk2.0-0 libgtk2.0-bin libgtk2.0-common libncurses5
libncursesw5 libpango1.0-0 libpango1.0-common libxml2 libxrender-dev libxrender1 locales render-dev
synaptic sysv-rc
28 upgraded, 7 newly installed, 刪除 3 個套件,另不更新 683 個套件。
需要下載 28.5MB 中 23.5MB 的檔案。
解壓縮後將空出 17.4MB 的空間。
繼續執行嗎? 是按 [Y] 鍵,否按 [n] 鍵 y
讀取:1 http://ftp.hk.debian.org testing/main libc6 2.3.6-3 [5159kB]
讀取:2 http://ftp.hk.debian.org testing/main libc6-dev 2.3.6-3 [2734kB]
讀取:3 http://ftp.hk.debian.org testing/main locales 2.3.6-3 [3925kB]
讀取:4 http://ftp.hk.debian.org testing/main debianutils 2.15.3 [56.8kB]
讀取:5 http://ftp.hk.debian.org testing/main gcc-4.0-base 4.0.3-1 [181kB]
讀取:6 http://ftp.hk.debian.org testing/main libgcc1 1:4.0.3-1 [21.3kB]
讀取:7 http://ftp.hk.debian.org testing/main libstdc++6 4.0.3-1 [288kB]
讀取:8 http://ftp.hk.debian.org testing/main libdb4.3 4.3.29-4.1 [421kB]
讀取:9 http://ftp.hk.debian.org testing/main apt-utils 0.6.43.3 [196kB]
讀取:10 http://ftp.hk.debian.org testing/main libsigc++-2.0-0c2a 2.0.16-3 [32.9kB]
讀取:11 http://ftp.hk.debian.org testing/main libxml2 2.6.23.dfsg.2-2 [709kB]
讀取:12 http://ftp.hk.debian.org testing/main libgtk2.0-common 2.8.13-1 [3528kB]
讀取:13 http://ftp.hk.debian.org testing/main libpango1.0-common 1.10.4-1 [19.4kB]
讀取:14 http://ftp.hk.debian.org testing/main libpango1.0-0 1.10.4-1 [287kB]
讀取:15 http://ftp.hk.debian.org testing/main libxinerama1 6.9.0.dfsg.1-4 [192kB]
讀取:16 http://ftp.hk.debian.org testing/main libgtk2.0-bin 2.8.13-1 [21.8kB]
讀取:17 http://ftp.hk.debian.org testing/main libgtk2.0-0 2.8.13-1 [2172kB]
讀取:18 http://ftp.hk.debian.org testing/main libncurses5 5.5-1 [294kB]
讀取:19 http://ftp.hk.debian.org testing/main synaptic 0.57.8 [1822kB]
讀取:20 http://ftp.hk.debian.org testing/main apt 0.6.43.3 [1305kB]
讀取:21 http://ftp.hk.debian.org testing/main lsb-base 3.0-16 [13.1kB]
讀取:22 http://ftp.hk.debian.org testing/main sysv-rc 2.86.ds1-12 [47.4kB]
讀取:23 http://ftp.hk.debian.org testing/main initscripts 2.86.ds1-12 [47.6kB]
讀取 23.5MB 用了 3m46s (104kB/s)
E: 此安裝因衝突或特別依存關係,需暫時刪除『e2fsprogs』這個重要套件。這種情形通常有問題,但您確定的話請啟動『APT::Force-LoopBreak』選項。

請先remove e2fsprogs

請先用
apt-get remove e2fsprogs
刪除e2fsprogs.

那就應能update apt.

請問閣下是否太久沒有update.

因為舊的testing版本(即現時的stable sarge),
和新那個testing版本是不同的.

之前用了舊的testing netcd 來安裝,
都要先刪除e2fsprogs, 才能安裝新的套件.