【问题标题】:How to fetch OpenPGP key for Mesos installation?如何获取 Mesos 安装的 OpenPGP 密钥?
【发布时间】:2015-06-25 16:42:52
【问题描述】:

我一直在尝试在 Ubuntu 14.04 Openstack 虚拟机上安装 Mesos,但遇到了一些问题。我不能简单地按照 tarball 的说明进行操作,因为 Maven 在我必须使用的代理后面抛出了很多错误。我已经将 http://keyserver.ubuntu.com/pks/lookup?op=get&search=0xDF7D54CBE56151BF 中的 Mesos 密钥 DF7D54CBE56151BF 安装到虚拟机上,并且可以验证:

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_proxyhttps_proxy 变量。怎么了?

【问题讨论】:

    标签: ubuntu gnupg apt-get mesos openpgp


    【解决方案1】:

    apt 使用它自己的 GnuPG 密钥环 /etc/apt/trusted.gpg。改为使用apt-key 获取密钥,它使用正确的密钥环环绕 GnuPG。

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

    这也是官方文档中提出的,不过我replaced the short key ID with a long key ID for security reasons

    【讨论】:

    • 我不知道他们有自己的钥匙圈。感谢您的帮助!
    猜你喜欢
    • 1970-01-01
    • 2020-01-04
    • 2016-01-22
    • 2018-03-17
    • 2018-08-02
    • 2021-06-13
    • 2019-05-05
    • 2018-11-29
    • 1970-01-01
    相关资源
    最近更新 更多