The following signatures couldn't be verified because the public key is not available: NO_PUBKEY

本文解决了一个常见的Linux环境下使用APT时遇到的问题,即GPG错误导致的仓库签名无法验证。通过添加公钥到APT密钥环中,可以解决因缺少公钥而导致的签名验证失败问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值