
Ubuntu 20.04にelasticsearchをインストールしようとしましたが、次のエラーが発生します。
home@VirtualBox$ wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
gpg: no valid OpenPGP data found.
私も次のことを試しましたが、運がありませんでした。
VirtualBox:~$ wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch -O mykey
VirtualBox:~$ sudo apt-key add <<< mykey
[sudo] password for VirtualBox:
gpg: no valid OpenPGP data found.
Ubuntuパッケージを更新しました。
sudo apt-get update
この問題をどのように解決できますか?
事前にありがとう
答え1
次のようにキーのみをダウンロードしてみてください。
wget -O key https://artifacts.elastic.co/GPG-KEY-elasticsearch --no-check-certificate
問題は証明書の問題かもしれません。