GPG error: http://apt.llvm.org/xenial llvm-toolchain-xenial-7 InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 15CF4D18AF4F7421
W: The repository ‘http://apt.llvm.org/xenial llvm-toolchain-xenial-7 InRelease’ is not signed.
N: Data from such a repository can’t be authenticated and is therefore potentially dangerous to use.
解决办法
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 15CF4D18AF4F7421
sudo apt-get update
本文解决了一个常见的Linux环境下使用APT时遇到的问题,即GPG错误导致的仓库签名无法验证。通过添加公钥到APT密钥环中,可以解决因缺少公钥而导致的签名验证失败问题。
979

被折叠的 条评论
为什么被折叠?



