當前位置: 首頁>>技術教程>>正文


Ubuntu 16.04 更新管理器錯誤

, ,

問題描述

每次我嘗試執行軟件更新時,我都會從軟件管理器收到此錯誤:

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.

以下是我嘗試編輯我擁有的存儲庫時所顯示內容的一些屏幕截圖:

我不確定如何解決這個問題。

最佳回答

顯然,您在之前沒有刪除外部存儲庫的情況下進行了係統升級。解決問題的最簡單方法是刪除所有外部存儲庫並刪除所有相關公鑰。完成此操作後,更新存儲庫( sudo apt-get update )並檢查現在是否一切都已修複……當不再發生錯誤時,您可以添加新的外部存儲庫,但請仔細檢查這些存儲庫是否為 “matching Xenial” …

根據您添加的存儲庫,更新存儲庫時仍可能出現 “weak signature” 警告 – 但您可以忽略它,因為它隻是一條信息性消息。

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

次佳回答

在 命令行 中輸入以下內容:

wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox_2016.asc -O- | sudo apt-key add -

第三種回答

您需要刪除升級前遺留的舊密鑰。做:

sudo apt-key list

找到有問題的鍵(“virtualbox” 附近,”pub” 之後,xxx/KEYHERE)並執行:

sudo apt-key del KEYHERE

然後轉到 https://www.virtualbox.org/wiki/Linux_Downloads 並按照“基於 Debian 的 Linux 發行版”中的說明進行操作

參考資料

本文由Ubuntu問答整理, 博文地址: https://ubuntuqa.com/zh-tw/article/12151.html,未經允許,請勿轉載。