Moodle 主機更新時山現 GPG error

Ubuntu 14.04 只維謢到 2019年4月, 所以有不少學校客戶(企業好像都用RedHat?)的 Moodle 主機都進行更新, 但在 update 時會遇到簽章無法進行驗證(…couldn’t be verified…)的訊息, eg:

W: GPG error: http://sgp1.mirrors.digitalocean.com trusty InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY CBCB082A1BB943DBMoodle GPG error

 

解法有很多種,在這只提供最簡單的:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CBCB082A1BB943DB

再重新跑 apt-get update 即可。

ref: https://chrisjean.com/fix-apt-get-update-the-following-signatures-couldnt-be-verified-because-the-public-key-is-not-available/

ref: https://itsfoss.com/solve-gpg-error-signatures-verified-ubuntu/

 

Leave a comment