close

在終端機執行以下指令時 :

$ sudo apt-get updte

出現以下錯誤 :

W: GPG 錯誤: https://cli-assets.heroku.com/apt ./ InRelease: 由於無法取得它們的公鑰,以下簽章無法進行驗證: NO_PUBKEY ******************
W: The repository 'https://cli-assets.heroku.com/apt ./ InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.

 

原因 : 

該gpg key在 apt-key 資料庫中已經遺失。

 

解決辦法 : 

$ gpg --keyserver keyserver.ubuntu.com --recv-keys ******************

$ gpg -a --export ****************** | sudo apt-key add -

$ sudo apt-get updte

 

參考資料 : 

https://askubuntu.com/questions/131601/gpg-error-release-the-following-signatures-were-invalid-badsig

arrow
arrow
    文章標籤
    linux ubuntu
    全站熱搜
    創作者介紹
    創作者 Rex 的頭像
    Rex

    Rex-Software-Blog

    Rex 發表在 痞客邦 留言(0) 人氣()