【发布时间】:2020-05-29 19:35:11
【问题描述】:
我正在使用 Salt (SaltStack) 在 Ubuntu 18.04 中安装软件包。例如,我想安装一个formula for docker。当我应用docker 状态时,我收到一个无法安装包的错误,因为公式中使用的包存储库没有签名。
ID: docker package
Function: pkg.installed
Name: docker-engine
Result: False
Comment: An error was encountered while installing package(s): E: Failed to fetch https://apt.dockerproject.org/repo/dists/ubuntu-bionic/InRelease 403 Forbidden [IP: 13.33.98.216 443]
E: The repository 'https://apt.dockerproject.org/repo ubuntu-bionic InRelease' is not signed.
当我使用另一个公式时也会发生同样的情况。
我发现如果我要通过命令行手动安装软件包,我会使用--allow-unauthenticated 选项。
但是在使用 Salt 和 salt-formulas 时解决这个问题的方法是什么?如何从未签名的存储库安装包?
【问题讨论】:
标签: salt-stack