解决armbian更新报不能验证个别公钥
2023-07-11 • 预计阅读时间 1 分钟
2023-07-11 • 预计阅读时间 1 分钟
近期把rock5b升级 armbian
的 bookworm
版本的时候,不管是官方的源还是国内,都会在执行 apt update
的时候会出现如下的错误:
An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://mirrors.aliyun.com/armbian bookworm InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 93D6889F9F0E78D5
解决办法如下:
curl 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xdf00faf1c577104b50bf1d0093d6889f9f0e78d5' |gpg --dearmor| sudo tee /etc/apt/trusted.gpg.d/armbian.gpg
简单的说就是把在keyserver.ubuntu.com上的公钥手动放到受信任的公钥列表里面.
对于其他的类似报错可以 https://keyserver.ubuntu.com/ 上查找并导入.
参考资料: