星期三, 七月 01, 2009

Debian /Ubuntu Linux GPG Key 匯入

每次加入新的 套件庫(sources.list), ex:

# mplayer
deb http://www.debian-multimedia.org stable main
# skype
deb http://download.skype.com/linux/repos/debian/ stable non-free
#xbmc
deb http://ppa.launchpad.net/team-xbmc/jaunty-ppa/ubuntu jaunty main
deb-src http://ppa.launchpad.net/team-xbmc/jaunty-ppa/ubuntu jaunty main

apt-get update, 就會出現 GPG error, 類似如下的訊息:

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

要為 套件庫 加入公鑰認證, 之前是用這篇的做法: GPG Error for apt-get

發現此篇的做法簡單很多: [筆記] 為套件庫來源加入認證公鑰

假設 GPG Error 的 NO_PUBKEY 是  3D99F2AF5F230592, 匯入步驟如下:

  1. sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 3D99F2AF5F230592
  2. sudo apt-get update
  3. 這樣子就不會有 GPG Error 囉~ (如果多個 PUBKEY, 可以空格隔開, 多加幾個, 一起匯入)

相關標籤

this is comment icon [回覆]

哇 我一直有這個問題...原來是要這樣子解

Comment by kakashi (07/10/2009 16:54)
Add this page to del.icio.us

發表迴響

標題

內容 (限制 1000 字)

暱稱

電子郵件

個人網頁


 authimage


PS: 若無法留言, 請先確認是否有打開 JavaScript, 造成您的困擾, 實在萬分對不起 Orz...(如果無法留言, 勞煩可以發信給我好嗎? 謝謝.)
PS2: 若您的留言被誤判, 我都會再自行看過, 不需要一直重覆張貼~