版本
archlinux:
Linux version 5.4.0-132-generic (buildd@lcy02-amd64-059) (gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1)) #148-Ubuntu SMP Mon Oct 17 16:02:06 UTC 2022
pacman:
Pacman v6.0.1 - libalpm v13.0.1
背景
安装docker的时候遇到签名问题
(py39) [root@wjl-684dd85f58-t72sl TechFinDataFactory]# pacman -S docker
resolving dependencies...
looking for conflicting packages...
Package (4) New Version Net Change
extra/bridge-utils 1.7.1-1 0.04 MiB
community/containerd 1.6.18-1 115.17 MiB
community/runc 1.1.4-1 9.35 MiB
community/docker 1:23.0.1-1 104.08 MiB
Total Installed Size: 228.63 MiB
:: Proceed with installation? [Y/n] y
checking keyring...
checking package integrity...
error: runc: signature from "Frederik Schwan <frederik.schwan@linux.com>" is unknown trust
:: File /var/cache/pacman/pkg/runc-1.1.4-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: failed to commit transaction (invalid or corrupted package)
Errors occurred, no packages were upgraded.
解决
根据
https://stackoverflow.com/questions/70442943/runc-pgp-signature-issue
的说法,需要使用pacman -S archlinux-keyring
安装archlinux-keyring,也可以用pacman -S archlinuxcn-keyring
。
上述命令将更新Arch Linux系统中的新密钥,并禁用已吊销的密钥之后就会不会遇到类似问题了。