最近购入一块Rockchip芯片的开发版,安装了Armbian 25.2.2 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
引起这个问题的原因是系统内没有存储对应的密钥,apt
无法验证安全性。
如何解决?
很简单,首先执行gpg --keyserver keyserver.ubuntu.com --recv 648ACFD622F3D138
再执行gpg --export --armor 648ACFD622F3D138 | sudo apt-key add -
其中
648ACFD622F3D138
替换为apt报错的密钥(即NO_PUBKEY
后面那串)此时问题应该解决了
在执行sudo apt update 命令时,可能还会出现这个问题
W:密钥存储在过时的
trusted.gpg
密钥环中(/etc/apt/trusted.gpg)
,请参见apt-key(8)
的DEPREC
错误这个问题也很好解决,你只需要输入
cd /etc/apt sudo cp trusted.gpg trusted.gpg.d
就可以了👌🏻