【发布时间】:2021-11-09 10:45:16
【问题描述】:
我使用 Linux 容器已经有好几年了。我很惊讶我找不到关于这个问题的线索。场景:
我刚刚添加了一个新的包索引 (/etc/sources.list.d/example.list) 并想安装一个包,我们称之为 snailmail。
我运行命令:
apt-get update && apt-get install -y snailmail
我收到以下错误:
W: GPG error: https://example.com/snailmail/debian stable InRelease:
The following signatures couldn't be verified because the public key is not available:
NO_PUBKEY 7EF2A9D5F293ECE4
自动安装 GPG 密钥的最佳方法是什么?
【问题讨论】:
标签: linux docker containers gnupg apt