如何获取openpgp密钥来安装mesos?

oknwwptz  于 2021-06-21  发布在  Mesos
关注(0)|答案(1)|浏览(390)

我一直试图在ubuntu14.04openstack虚拟机上安装mesos,但遇到了一些问题。我不能简单地遵循tarball的说明,因为maven在我必须使用的代理后面抛出了很多错误。我已经安装了mesos钥匙 DF7D54CBE56151BF 从http://keyserver.ubuntu.com/pks/lookup?op=get&search=0xdf7d54cbe56151bf 并可以验证:

root@erik-mesos2:~# gpg --list-keys
/root/.gnupg/pubring.gpg
------------------------
pub   4096R/E56151BF 2014-05-21
uid                  Mesosphere Archive Automatic Signing Key <support@mesosphere.io>

我遵循这里列出的说明:https://docs.mesosphere.com/tutorials/install_ubuntu_debian/#step-1
但当我跑的时候 apt-get update 在安装了密钥之后,我遇到了一个错误

W: GPG error: http://repos.mesosphere.io trusty InRelease: The following signatures 
couldn't be verified because the public key is not available: NO_PUBKEY DF7D54CBE56151BF

作为参考,本教程要求在安装键之后使用这些命令。

DISTRO=$(lsb_release -is | tr '[:upper:]' '[:lower:]')
CODENAME=$(lsb_release -cs)
echo "deb http://repos.mesosphere.io/${DISTRO} ${CODENAME} main" |  sudo tee /etc/apt/sources.list.d/mesosphere.list
sudo apt-get -y update

我两者都有 http_proxy 以及 https_proxy 变量设置。怎么了?

6fe3ivhb

6fe3ivhb1#

apt使用自己的gnupg密钥环 /etc/apt/trusted.gpg . 使用 apt-key 取而代之的是使用右键环环绕gnupg的键。

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv DF7D54CBE56151BF

这也是官方文件中提出的,但出于安全考虑,我将短密钥id替换为长密钥id。

相关问题