TSp*_*ark 33 arm gnupg raspberrypi docker 20.04
我正在尝试构建 Raspberry Pi docker 映像,但我总是遇到相同的错误,类似于this one、this one和this one。
apt update在 a arm32v7/ubuntu:20.04(或仅ubuntu:latest)中以 root 身份运行命令时,我得到以下输出:
root@273d63597ce6:/# apt update
Get:1 http://ports.ubuntu.com/ubuntu-ports focal InRelease [265 kB]
Get:2 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease [111 kB]
Get:3 http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease [98.3 kB]
Get:4 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease [107 kB]
Err:1 http://ports.ubuntu.com/ubuntu-ports focal InRelease
At least one invalid signature was encountered.
Err:2 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease
At least one invalid signature was encountered.
Err:3 http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease
At least one invalid signature was encountered.
Err:4 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease
At least one invalid signature was encountered.
Reading package lists... Done
W: GPG error: http://ports.ubuntu.com/ubuntu-ports focal InRelease: At least one invalid signature was encountered.
E: The repository 'http://ports.ubuntu.com/ubuntu-ports focal 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 focal-updates InRelease: At least one invalid signature was encountered.
E: The repository 'http://ports.ubuntu.com/ubuntu-ports focal-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 focal-backports InRelease: At least one invalid signature was encountered.
E: The repository 'http://ports.ubuntu.com/ubuntu-ports focal-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 focal-security InRelease: At least one invalid signature was encountered.
E: The repository 'http://ports.ubuntu.com/ubuntu-ports focal-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.
Run Code Online (Sandbox Code Playgroud)
我已经尝试了清理 apt、清理 docker 和删除/重新创建的建议解决方案,/var/lib/apt/lists但没有成功。SD 卡为 32G,操作系统为全新安装。df显示26G免费。
更多信息:
ubuntu:18.04, 16.04, 14.04) ,则不会发生该错误TSp*_*ark 36
问题的根本原因在于 libseccomp。较新的版本修复了这个问题,但它在 Debian 的稳定存储库中尚不可用。有两种方法可以解决这个问题:
方法一
用 启动容器--privileged。这绕过了docker的安全措施,所以不推荐。或者--security-opt seccomp:unconfined更安全一点。
docker run -it --security-opt seccomp:unconfined ubuntu:latest
方法二
在主机系统上手动升级 libseccomp。从不稳定的存储库下载版本(我用 2.4.3-1 测试过)here。
安装新版本:
sudo dpkg -i libseccomp2_2.4.3-1+b1_armhf.deb
注:以上方法解决了基于 Raspbian 的系统的问题。该错误也发生在 Ubuntu 20.04 aarch64 系统上,@NeonLines 的回答能够提供帮助。
| 归档时间: |
|
| 查看次数: |
19116 次 |
| 最近记录: |