apt-get 更新時發生錯誤:Ubuntu 16.04

apt-get 更新時發生錯誤:Ubuntu 16.04

我一直試圖弄清楚當我運行 apt-get update 時發生了什麼。我嘗試過瀏覽原始檔案並使用 Ubuntu Tweak 來清理來源列表,但沒有任何效果。

當我運行 apt-get update 時,我得到:

Reading package lists... Done
N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'https://packages.microsoft.com/repos/vscode stable InRelease' doesn't support architecture 'i386'
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://download.opensuse.org/repositories/home:/Horst3180/xUbuntu_16.04  Release: The following signatures were invalid: KEYEXPIRED 1496576244
W: The repository 'http://ppa.launchpad.net/tualatrix/ppa/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: Failed to fetch http://download.opensuse.org/repositories/home:/Horst3180/xUbuntu_16.04/Release.gpg  The following signatures were invalid: KEYEXPIRED 1496576244
E: Failed to fetch http://ppa.launchpad.net/tualatrix/ppa/ubuntu/dists/xenial/main/binary-amd64/Packages  404  Not Found
W: Some index files failed to download. They have been ignored, or old ones used instead.
W: Duplicate sources.list entry http://packages.microsoft.com/repos/vscode stable Release

答案1

您正在嘗試安裝(或更新)Ubuntu Tweak從 PPA 呼叫的程式包tualatrix/ppa,該套件如下所述:https://launchpad.net/~tualatrix/+archive/ubuntu/ppa。但是,此 PPA 不包含任何與您的 Ubuntu 版本 ( xenial) 相容的軟體包,因為它在trusty.

您可以嘗試下載該deb檔案trusty並安裝它,但很可能無法滿足依賴關係。

本文更詳細地解釋發生了什麼,並建議您安裝Unity tweak

若要清理此問題,請刪除包含tualatrixfrom 您的sources.list檔案的行和/或刪除包含tualatrixfrom 的任何檔案sources.list.d。或者,安裝ppa-purge並執行sudo ppa-purge tualatrix/ppa.

最後,sudo apt update && sudo apt upgrade再次運行。

相關內容