Crystal install on Ubuntu 18.04 メモ
apt のrepository 追加でエラーになる。
$ curl https://dist.crystal-lang.org/apt/setup.sh | sudo bash Err:4 https://dist.crystal-lang.org/apt crystal InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 09617FD37CC06B54 Reading package lists... Done W: GPG error: https://dist.crystal-lang.org/apt crystal InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 09617FD37CC06B54 E: The repository 'https://dist.crystal-lang.org/apt crystal InRelease' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.
鍵のインストールで失敗したので、鍵だけとってきて追加する。(この時に、aptのリストには入ってる)
https://github.com/crystal-lang/crystal/issues/4417
こちらに差し替える公開鍵が乗ってるので、こちらから取得。
$ wget https://keybase.io/crystal/pgp_keys.asc $ sudo apt-key add pgp_keys.asc
これで鍵は登録できたので、インストールできる。
$ sudo apt-get update $ sudo apg-get install crystal