debian 安装应用时出现no public key available for the following key IDs

今天在鼓捣一个debian VPS 时发现无法通过apt-get安装程序

开始以为是没有apt-get update 后来发现update的时候也会提示no public key available for the following key IDs

上网搜索了一下,发现了一个好用的解决方法,亲测可行,记录一下

首先

dpkg --configure -a

先检查包安装的完整性

然后

apt-get install debian-keyring debian-archive-keyring

最后

apt-key update

完成之后发现apt-get install或者update都正常了

发表回复