apt-get update在parrot OS中不起作用

问题描述 投票:0回答:2

我想在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.

我怎么能永久修复它?

linux shell terminal debian parrot-os
2个回答
1
投票

apt打包系统具有一组可信密钥,用于确定是否可以对软件包进行身份验证,从而确认是否可以在系统上安装软件包。有时系统没有所需的所有密钥并遇到此问题。幸运的是,有一个快速修复。需要将列为缺失的每个密钥添加到apt密钥管理器,以便它可以对软件包进行身份验证。

看看上面的错误,apt告诉我们缺少以下密钥:

NO_PUBKEY ED05F7B2EC3C9224

要添加这些密钥,请运行以下命令:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys ED05F7B2EC3C9224

应该执行非常相似的东西

执行:gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.QTeppiINUh --no-auto-check-trustdb --trust-model always --keyring / etc / apt / trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5 gpg:从hkp服务器keyserver.ubuntu.com请求密钥437D05B5 gpg:key 437D05B5:公钥“Ubuntu Archive Automatic Signing Key”导入gpg:处理总数:1 gpg:导入:1

而且Voila !!!您应该能够运行更新命令


0
投票

编辑/etc/resolv.conf。在终端窗口中运行

sudo nano /etc/resolv.conf

评论所有其他'名字服务员'#

并添加该行

nameserver 8.8.8.8

并保存。按ctrl + 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身份登录时不要这样做

© www.soinside.com 2019 - 2024. All rights reserved.