備忘録です。
現象
以下のコマンドでエラーが出ます。
$ sudo apt update
...
Err:3 http://ppa.launchpad.net/appgrid/stable/ubuntu bionic InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 241FE6973B765FAE
Reading package lists... Done
W: GPG error: http://ppa.launchpad.net/appgrid/stable/ubuntu bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 241FE6973B765FAE
E: The repository 'http://ppa.launchpad.net/appgrid/stable/ubuntu bionic InRelease' is not signed.
結論
公開鍵を持っていないようなので取得してきます。
最後の文字列はエラーメッセージのNO_PUBKEYの後の文字列を。
$ sudo apt-key adv --keyserver keys.gnupg.net --recv-keys 241FE6973B765FAE
幸せになります。
$ sudo apt update
Hit:1 https://download.docker.com/linux/ubuntu bionic InRelease
Hit:2 http://packages.microsoft.com/repos/vscode stable InRelease
Hit:3 http://apt.galliumos.org bismuth InRelease
Get:4 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Hit:5 http://archive.ubuntu.com/ubuntu bionic InRelease
Get:7 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Hit:8 http://ppa.launchpad.net/ondrej/php/ubuntu bionic InRelease
Get:6 http://ppa.launchpad.net/appgrid/stable/ubuntu bionic InRelease [15.4 kB]
Get:9 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:10 http://ppa.launchpad.net/appgrid/stable/ubuntu bionic/main amd64 Packages [572 B]
Get:11 http://ppa.launchpad.net/appgrid/stable/ubuntu bionic/main Translation-en [412 B]
Fetched 268 kB in 4s (64.6 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
35 packages can be upgraded. Run 'apt list --upgradable' to see them.
ありがとう -> 参考元