docker - 在 Docker 构建期间第二次 apt-get 更新后 Ubuntu 21.04 中的 GPG 错误

标签 docker ubuntu gpg-signature

构建以下 Docker 文件时出错

FROM ubuntu:21.04

RUN apt-get update && \
    apt-get install --no-install-recommends -y curl=7.\* && \
    apt-get install --no-install-recommends -y unzip=6.\* &&\ 
    rm -rf /var/lib/apt/lists/*

RUN apt-get update && \
    mkdir -p /usr/share/man/man1 && \
    apt-get install --no-install-recommends -y maven=3.6.3-5 && \
    apt-get clean && \
    rm -rf /var/lib/apt/lists/*
当第二个 apt-get update 出现错误运行。
错误如下:-
E: The repository 'http://security.ubuntu.com/ubuntu hirsute-security InRelease' is not signed.
W: GPG error: http://archive.ubuntu.com/ubuntu hirsute InRelease: gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed
E: The repository 'http://archive.ubuntu.com/ubuntu hirsute InRelease' is not signed.
W: GPG error: http://archive.ubuntu.com/ubuntu hirsute-updates InRelease: gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed
E: The repository 'http://archive.ubuntu.com/ubuntu hirsute-updates InRelease' is not signed.
W: GPG error: http://archive.ubuntu.com/ubuntu hirsute-backports InRelease: gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed
E: The repository 'http://archive.ubuntu.com/ubuntu hirsute-backports InRelease' is not signed.

任何形式的帮助将不胜感激。

最佳答案

这是 docker/seccomp/glibc 交互中的一个错误:https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1916485

关于docker - 在 Docker 构建期间第二次 apt-get 更新后 Ubuntu 21.04 中的 GPG 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66319610/

相关文章:

linux - sudo apt-get-repository : command is not found in debian linux

travis-ci - 如何对由 Travis-CI 构建的文件进行 GPG 签名

python - ffmpeg-python 'OSError[2] No such file or directory' 错误

linux - 如何在后台启动 php 服务器作为 docker 容器中的守护进程

qt - Ubuntu OpenCV 安装和设置(Qt5?)

linux - SSH 隧道到 Ngrok 并启动 RDP

git - 无法在 GitHub 上将我的第二封邮件提交为 "verified"

Linux Debian apt-get 更新错误/Atom 缺少 GPG key

docker - Cassandra ERROR : java. io.IOException : failed to connect to/127. 0.0.1:7000 对于流数据

PHP NumberFormatter 总是给我默认的 en_US