如何信任 apt 存储库:Debian apt-get 更新错误公钥不可用:NO_PUBKEY <id> [英] How to trust a apt repository : Debian apt-get update error public key is not available: NO_PUBKEY <id>

查看:26
本文介绍了如何信任 apt 存储库:Debian apt-get 更新错误公钥不可用:NO_PUBKEY <id>的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试在 Debian Etch 安装上更新一些存储库,并在运行apt-get update"时出现以下错误

Trying to update some repositories on Debian Etch installation and getting the following errors from running "apt-get update"

W: GPG error: http://www.debian-multimedia.org etch Release: The following signatures couldn't be verified because teh public key is not available: NO_PUBKEY 07DC563D1F41B907
W: You may want to run apt-get update to correct these problems

具有讽刺意味的是,它指示我运行 apt-get update 是一个不错的选择...

The irony of it instructing me to run apt-get update is a nice kicker...

推荐答案

我发现有几个帖子告诉我要运行几个 gpg 命令,但由于两个原因他们没有解决问题.首先,我的系统上缺少 debian-keyring 软件包,其次我使用了无效的密钥服务器.如果超时,请尝试不同的密钥服务器!

I found several posts telling me to run several gpg commands, but they didn't solve the problem because of two things. First, I was missing the debian-keyring package on my system and second I was using an invalid keyserver. Try different keyservers if you're getting timeouts!

因此,我修复它的方式是:

Thus, the way I fixed it was:

apt-get install debian-keyring
gpg --keyserver pgp.mit.edu --recv-keys 1F41B907
gpg --armor --export 1F41B907 | apt-key add -

然后运行一个新的apt-get update"就完美无缺了!

Then running a new "apt-get update" worked flawlessly!

这篇关于如何信任 apt 存储库:Debian apt-get 更新错误公钥不可用:NO_PUBKEY <id>的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆