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, 可以空格隔開, 多加幾個, 一起匯入)

作者: Tsung

對新奇的事物都很有興趣, 喜歡簡單的東西, 過簡單的生活.

在〈Debian /Ubuntu Linux GPG Key 匯入〉中有 1 則留言

kakashi 發表迴響取消回覆

這個網站採用 Akismet 服務減少垃圾留言。進一步了解 Akismet 如何處理網站訪客的留言資料