我在尝试使用基本 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 …