|
|
知识渊博的奔马 · win系统'tar' ...· 1 年前 · |
|
|
俊逸的企鹅 · 如何:使用反射检查和实例化泛型类型 - ...· 1 年前 · |
|
|
重情义的羽毛球 · android - ...· 2 年前 · |
在我的Jenkins管道中,我试图使用Docker映像
maven:3.5.4-jdk-10-slim
作为我的Jenkins代理来运行一个构建。在它内部,我运行命令
apt-get update
。但是,当我这样做时,我会得到以下错误:
Get:1 http://deb.debian.org/debian sid InRelease [165 kB]
Err:1 http://deb.debian.org/debian sid InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY 0E98404D386FA1D9
我在网上搜索有关此错误的帮助,建议在update命令之前添加以下两个命令,以便添加用于apt验证的公钥:
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 648ACFD622F3D138
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0E98404D386FA1D9
但是,现在我在运行这些命令时得到了一个不同的错误:
E: gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them is required for this operation
我还搜索了有关该错误的帮助,并建议在以下两个新命令之前运行该命令:
apt-get update && apt-get install -y gnupg
但我不能运行
apt-get update
。我怎么才能解决这个问题?
发布于 2022-07-31 17:09:00
我也遇到了同样的问题。对我来说,以下内容已经解决了这个问题。
我意识到,我正在使用一个非常老版本的
docker:18-dind
在我的CI中构建图像。这个
18-dind
更像是一个木偶,它建立和推动图像。它能够构建图像,除了基于Ubuntu 22的映像,例如
eclipse-temurin
。
我把我的Docker构建木偶从
18-dind
升级到
20-dind
,它解决了这个问题。
https://stackoverflow.com/questions/70292285
复制相似问题
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2023 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号: 粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287