Docker 构建 - GPG 错误 Phusion Passenger Enterprise

Docker Build - GPG error Phusion Passenger Enterprise

我们docker建客企业已经停建

我们有以下错误:

GPG error: https://www.phusionpassenger.com/enterprise_apt xenial Release: The following signatures were invalid: NODATA 2

现阶段在Dockerfile

ADD passenger-enterprise-license /etc/passenger-enterprise-license
RUN echo deb https://download:<OUR_KEY>@www.phusionpassenger.com/enterprise_apt xenial main > /etc/apt/sources.list.d/passenger.list
RUN apt-get update && apt-get install -y -o Dpkg::Options::="--force-confold" passenger-enterprise nginx-extras

Docker 日志:

Step 7/39 : RUN apt-get update && apt-get install -y -o Dpkg::Options::="--force-confold" passenger-enterprise nginx-extras ---> Running in cfb74f74a227 Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB] Get:2 http://archive.ubuntu.com/ubuntu xenial InRelease [247 kB] Ign:3 https://www.phusionpassenger.com/enterprise_apt xenial InRelease Get:4 https://www.phusionpassenger.com/enterprise_apt xenial Release [23.0 kB] Err:5 https://www.phusionpassenger.com/enterprise_apt xenial Release.gpg The following signatures were invalid: NODATA 2

我已经查看了客运企业许可证和令牌。他们都是正确的。

在这里也提出了 github 个问题:Docker build failing Enterprise 在这里:Docker build failing Enterprise

这里是 Phusion Passenger 团队成员。对于仍然遇到此问题的任何人:不幸的是,当我们昨天迁移到新服务器时,一些 gpg 密钥没有正确导入。该问题现在应该已解决,但如果您仍然遇到问题,请尝试 运行 apt clean && rm -rf /var/lib/apt/lists/* && apt update

这将清除本地 apt 缓存并重试 apt 更新。 对于由此给您带来的不便,我们深表歉意。