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

Tan*_*aya 20 ubuntu docker 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/*
Run Code Online (Sandbox Code Playgroud)

第二次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.

Run Code Online (Sandbox Code Playgroud)

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

Gre*_*sny 11

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

  • 来自 [21.04 发行说明](https://discourse.ubuntu.com/t/hirsute-hippo-release-notes/19221):“由于 glibc 2.33 Ubuntu 21.04 容器映像的更改需要更新的容器运行时。支持的 Ubuntu 版本中提供的所有广泛使用的容器运行时均已通过标准稳定版本更新程序进行了更新。运行其他操作系统的容器主机可能需要手动更新。” (3认同)
  • 使用“runc 1.0.0-rc93”进行了修复。您可以使用“docker version”找到您的版本。 (2认同)