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)