gnupg, gnupg2 and gnupg1 do not

2019-05-16  本文已影响0人  tingshuo123

在 Docker 中 Ubuntu 添加密钥时遇到的错误

Step 4/14 : RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5
---> Running in dd67e1511194
E: gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them is required for this operation
The command '/bin/sh -c apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5' returned a non-zero code: 255

解决

在添加密钥之前执行
RUN apt-get update && apt-get install -y gnupg2

上一篇 下一篇

猜你喜欢

热点阅读