小编Wik*_*ver的帖子

手动添加密钥?由于公钥不可用,无法验证以下签名:NO_PUBKEY

我正在尝试在 Docker 中使用 Ubuntu 20.04 或 Ubuntu 22.04。我的Dockerfile是:

from ubuntu:22.04
run DEBIAN_FRONTEND=noninteractive apt update
Run Code Online (Sandbox Code Playgroud)

我用 构建这个docker build .。结果是:

Sending build context to Docker daemon  2.048kB
Step 1/2 : from ubuntu:22.04
---> 2dc39ba059dc
Step 2/2 : run DEBIAN_FRONTEND=noninteractive apt update
---> Running in b15002ae9dd5

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Get:1 http://archive.ubuntu.com/ubuntu jammy InRelease [270 kB] 
Get:2 http://security.ubuntu.com/ubuntu jammy-security 
InRelease [110 kB] 
Get:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [114 kB] 
Get:4 …
Run Code Online (Sandbox Code Playgroud)

apt gnupg docker

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

标签 统计

apt ×1

docker ×1

gnupg ×1