![arm 使用 ubuntu:23.10,docker build 失败,使用 --privileged 启动容器成功](https://linux22.com/image/1198846/arm%20%E4%BD%BF%E7%94%A8%20ubuntu%3A23.10%EF%BC%8Cdocker%20build%20%E5%A4%B1%E8%B4%A5%EF%BC%8C%E4%BD%BF%E7%94%A8%20--privileged%20%E5%90%AF%E5%8A%A8%E5%AE%B9%E5%99%A8%E6%88%90%E5%8A%9F.png)
构建映像基础ubuntu:23.10
错误
W: GPG error: http://ports.ubuntu.com/ubuntu-ports mantic InRelease: At least one invalid signature was encountered.
E: The repository 'http://ports.ubuntu.com/ubuntu-ports mantic InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://ports.ubuntu.com/ubuntu-ports mantic-updates InRelease: At least one invalid signature was encountered.
E: The repository 'http://ports.ubuntu.com/ubuntu-ports mantic-updates InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://ports.ubuntu.com/ubuntu-ports mantic-backports InRelease: At least one invalid signature was encountered.
E: The repository 'http://ports.ubuntu.com/ubuntu-ports mantic-backports InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://ports.ubuntu.com/ubuntu-ports mantic-security InRelease: At least one invalid signature was encountered.
E: The repository 'http://ports.ubuntu.com/ubuntu-ports mantic-security InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Problem executing scripts APT::Update::Post-Invoke 'rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true'
E: Sub-process returned an error code
docker文件
FROM ubuntu:23.10
ENV DEBIAN_FRONTEND=noninteractive
RUN apt update \
&& apt-get -y update \
&& apt-get -y upgrade \
&& rm -fr /root/.cache/pip/wheels/* \
&& rm -fr /tmp/* \
&& apt-get clean \
&& apt-get autoclean \
&& apt-get autoremove
使用docker运行容器,出现同样的错误。
我尝试使用--privileged选项运行,可以。