我尝试在 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
该问题可能是证书问题