我正在尝试在parrot中执行sudo apt-get update,但是我得到的只是这个错误
Err:1 http://your.repo.domain/repository JollyRoger InRelease
Could not resolve 'your.repo.domain'
Ign:2 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:3 http://dl.google.com/linux/chrome/deb stable Release
Hit:4 http://deb.playonlinux.com wheezy InRelease
Get:5 http://mirrordirector.archive.parrotsec.org/parrot parrot InRelease [14.6 kB]
Err:5 http://mirrordirector.archive.parrotsec.org/parrot parrot InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ED05F7B2EC3C9224
Reading package lists... Done
W: GPG error: http://mirrordirector.archive.parrotsec.org/parrot parrot InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ED05F7B2EC3C9224
E: The repository 'http://mirrordirector.archive.parrotsec.org/parrot parrot InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.我怎样才能永久修复它?
发布于 2018-04-19 06:36:06
apt打包系统具有一组可信密钥,其确定包是否可以被认证并因此被可信地安装在系统上。有时系统不具备所需的所有密钥,因此会遇到此问题。幸运的是,有一个快速的解决方案。列出为丢失的每个密钥都需要添加到apt密钥管理器,以便它可以对包进行身份验证。
查看上面的错误,apt告诉我们缺少以下键:
NO_PUBKEY ED05F7B2EC3C9224要添加这些密钥,请运行以下命令:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys ED05F7B2EC3C9224应该执行一些非常类似的操作
执行: gpg --忽略--时间-冲突--无--选项--无--默认-密钥环--homedir /tmp/tmp.QTeppiINUh --否--自动检查-信任数据库--信任模型始终--密钥环/etc/apt/trusted.gpg --主密钥环/etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv- key 40976EAF437D05B5 gpg:向hkp服务器请求密钥437D05B5 keyserver.ubuntu.com : key 437D05B5:公钥"Ubuntu存档自动签名密钥“已导入gpg:处理总数:1 gpg:已导入:1
瞧!您应该能够运行更新命令
发布于 2019-03-05 16:20:28
编辑/etc/resolv.conf。在终端窗口中运行
sudo nano /etc/resolv.conf注释掉所有其他的'nameservers‘#
并添加下面这行
nameserver 8.8.8.8然后保存。按ctr +x,然后按字母'y‘,然后再次按Enter键。
那就这么做
ping www.google.com
如果成功,则运行以下命令
sudo apt-get --download-only --reinstall install resolvconf
sudo dpkg --purge --force-depends resolvconf
sudo apt-get install resolvconf祝好运!这对我很管用。
备注:以root身份登录时请勿执行此操作
https://stackoverflow.com/questions/49829869
复制相似问题