Ubuntu 16.04更新管理器错误


22

每次尝试执行软件更新时,都会从软件管理器收到此错误:

W:GPG error: http://download.virtualbox.org/virtualbox/debian xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A2F683C52980AECF, W:The repository 'http://download.virtualbox.org/virtualbox/debian xenial InRelease' is not signed., W:Data from such a repository can't be authenticated and is therefore potentially dangerous to use., W:See apt-secure(8) manpage for repository creation and user configuration details., W:There is no public key available for the following key IDs:
A2F683C52980AECF  , W:The repository 'http://ppa.launchpad.net/blackmage/f.lux/ubuntu xenial Release' does not have a Release file., W:Data from such a repository can't be authenticated and is therefore potentially dangerous to use., W:See apt-secure(8) manpage for repository creation and user configuration details., W:The repository 'http://ppa.launchpad.net/gezakovacs/ppa/ubuntu xenial Release' does not have a Release file., W:Data from such a repository can't be authenticated and is therefore potentially dangerous to use., W:See apt-secure(8) manpage for repository creation and user configuration details., W:The repository 'http://ppa.launchpad.net/zeal-developers/ppa/ubuntu xenial Release' does not have a Release file., W:Data from such a repository can't be authenticated and is therefore potentially dangerous to use., W:See apt-secure(8) manpage for repository creation and user configuration details., W:http://deb.playonlinux.com/dists/trusty/InRelease: Signature by key 74F7358425EEB6176094C884E0F72778C4676186 uses weak digest algorithm (SHA1), W:http://liveusb.info/multisystem/depot/dists/all/Release.gpg: Signature by key 32027DE3D67157C45E69C0AE4E940D7FDD7FB8CC uses weak digest algorithm (SHA1), W:http://vagrant-deb.linestarve.com/dists/any/InRelease: Signature by key AD319E0F7CFFA38B4D9F6E55CE3F3DE92099F7A4 uses weak digest algorithm (SHA1), E:Failed to fetch http://ppa.launchpad.net/blackmage/f.lux/ubuntu/dists/xenial/main/source/Sources  404  Not Found, E:Failed to fetch http://ppa.launchpad.net/blackmage/f.lux/ubuntu/dists/xenial/main/binary-i386/Packages  404  Not Found, E:Failed to fetch http://ppa.launchpad.net/gezakovacs/ppa/ubuntu/dists/xenial/main/binary-i386/Packages  404  Not Found, E:Failed to fetch http://ppa.launchpad.net/zeal-developers/ppa/ubuntu/dists/xenial/main/source/Sources  404  Not Found, E:Failed to fetch http://ppa.launchpad.net/zeal-developers/ppa/ubuntu/dists/xenial/main/binary-i386/Packages  404  Not Found, E:Some index files failed to download. They have been ignored, or old ones used instead.

以下是我尝试编辑我的存储库时显示的屏幕截图:

在此处输入图片说明

在此处输入图片说明

在此处输入图片说明

在此处输入图片说明

在此处输入图片说明

在此处输入图片说明

在此处输入图片说明

我不确定如何解决此问题。

Answers:


3

您显然进行了系统升级,而之前没有删除外部存储库。解决问题的最简单方法是删除所有外部存储库并删除所有相关的公共密钥。完成此操作后,更新存储库(sudo apt-get update)并检查现在是否已修复所有问题……并且当不再发生错误时,可以添加新的外部存储库,但要仔细检查这些存储库是否与Xenial匹配。

根据您添加的存储库,在更新存储库时,仍然可能会出现“弱签名”警告-但您可以忽略它,因为它只是参考消息。

gpg: Signature by key ... uses weak digest algorithm (SHA1)  

这会删除某些软件需要更新的存储库吗?
本·温丁

@TylerDurden对不起,我不明白您的意思……“这个”什么都没有做……这是一种解释和建议。当您删除外部存储库时,只删除它们,标准存储库仍然存在。系统升级后,您可以重新添加外部存储库-如果它们包含用于升级系统的软件。:)
cl-netbox


10

您需要删除升级前遗留的旧密钥。做:

sudo apt-key list

找到有问题的密钥(在“ virtualbox”附近,在“ pub”之后,xxx / KEYHERE)并执行以下操作:

sudo apt-key del KEYHERE

然后转到https://www.virtualbox.org/wiki/Linux_Downloads并按照“基于Debian的Linux发行版”中的说明进行操作


尽管从理论上讲这可以回答问题,但最好在此处包括答案的基本部分,并提供链接以供参考。
MadMike

尽管我无法接受这种逻辑,但您建议包含的信息随时可以更改,因此从长远来看,我认为这样做并不是特别有帮助。
NikLP

1

尝试安装docker时遇到此问题。该指令建议运行lsb_release -cs并返回我serena,但应该xenial 这样,我手动打开文件/etc/apt/sources.list.d/additional-repositories.list并进行了更改:serena-> xenial在下一个字符串中:

deb [arch=amd64] https://download.docker.com/linux/ubuntu serena stable

问题已经解决了

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.