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
參考資料 :
文章標籤
全站熱搜