小编Abb*_*bas的帖子

由于公钥不可用,无法验证签名

我在尝试使用基本 ubuntu 映像运行 docker 容器时遇到了麻烦。

在尝试时RUN apt-get update,我收到以下错误:

W: GPG error: http://ppa.launchpad.net/webupd8team/java/ubuntu trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C2518248EEA14886
E: The repository 'http://ppa.launchpad.net/webupd8team/java/ubuntu trusty InRelease' is not signed.
Run Code Online (Sandbox Code Playgroud)

但是当我尝试添加key类似内容时:

RUN apt-key adv --keyserver http://keyserver.ubuntu.com:80 --recv-keys C2518248EEA14886
Run Code Online (Sandbox Code Playgroud)

我收到以下错误:

E: gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them is required for this operation
Run Code Online (Sandbox Code Playgroud)

所以尝试安装gnupg| gnupg1| gnupg2我收到RUN apt-get …

apt gnupg docker

5
推荐指数
1
解决办法
4405
查看次数

标签 统计

apt ×1

docker ×1

gnupg ×1