小编heu*_*cus的帖子

确保 add-apt-repository 保持 deb 输入字符串中的 trust=yes

sources.list我正在尝试使用该命令将私有存储库添加到我的存储库中add-apt-repository,但我无权访问与该包存储库对应的公钥。

如果我尝试正常添加存储库

sudo add-apt-repository "deb http://my-private-server.test $(lsb_release -s -c) main"
Run Code Online (Sandbox Code Playgroud)

我遇到公钥不可用的问题(如我所料)

  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY <pubkey>
Reading package lists... Done                                                                            
W: GPG error: https://my-private-server.test bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY <pubkey>
E: The repository 'http://my-private-server.test bionic InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: …
Run Code Online (Sandbox Code Playgroud)

apt 18.04

5
推荐指数
0
解决办法
4364
查看次数

标签 统计

18.04 ×1

apt ×1