Ubuntu
apt更新錯誤
每當我執行時,我都會收到此錯誤
sudo apt update
:E: The repository 'http://archive.ubuntu.com/ubuntu wily Release' does not have a Release file. 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.
我正在執行 Ubuntu 16.04。
lsb_release -a Distributor ID: Ubuntu Description: Ubuntu 16.04.3 LTS Release: 16.04 Codename: xenial
內容
/etc/apt/sources.list
:# deb cdrom:[Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719)]/ xenial main restricted # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. deb http://dz.archive.ubuntu.com/ubuntu/ xenial main restricted # deb-src http://dz.archive.ubuntu.com/ubuntu/ xenial main restricted ## Major bug fix updates produced after the final release of the ## distribution. deb http://dz.archive.ubuntu.com/ubuntu/ xenial-updates main restricted # deb-src http://dz.archive.ubuntu.com/ubuntu/ xenial-updates main restricted ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team, and may not be under a free licence. Please satisfy yourself as to ## your rights to use the software. Also, please note that software in ## universe WILL NOT receive any review or updates from the Ubuntu security ## team. deb http://dz.archive.ubuntu.com/ubuntu/ xenial universe # deb-src http://dz.archive.ubuntu.com/ubuntu/ xenial universe deb http://dz.archive.ubuntu.com/ubuntu/ xenial-updates universe # deb-src http://dz.archive.ubuntu.com/ubuntu/ xenial-updates universe ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team, and may not be under a free licence. Please satisfy yourself as to ## your rights to use the software. Also, please note that software in ## multiverse WILL NOT receive any review or updates from the Ubuntu ## security team. deb http://dz.archive.ubuntu.com/ubuntu/ xenial multiverse # deb-src http://dz.archive.ubuntu.com/ubuntu/ xenial multiverse deb http://dz.archive.ubuntu.com/ubuntu/ xenial-updates multiverse # deb-src http://dz.archive.ubuntu.com/ubuntu/ xenial-updates multiverse ## N.B. software from this repository may not have been tested as ## extensively as that contained in the main release, although it includes ## newer versions of some applications which may provide useful features. ## Also, please note that software in backports WILL NOT receive any review ## or updates from the Ubuntu security team. deb http://dz.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse # deb-src http://dz.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse ## Uncomment the following two lines to add software from Canonical's ## 'partner' repository. ## This software is not part of Ubuntu, but is offered by Canonical and the ## respective vendors as a service to Ubuntu users. # deb http://archive.canonical.com/ubuntu xenial partner deb-src http://archive.canonical.com/ubuntu xenial partner deb http://security.ubuntu.com/ubuntu xenial-security main restricted # deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted deb http://security.ubuntu.com/ubuntu xenial-security universe # deb-src http://security.ubuntu.com/ubuntu xenial-security universe deb http://security.ubuntu.com/ubuntu xenial-security multiverse # deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable # deb-src [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable deb http://deb.torproject.org/torproject.org stretch main deb-src http://deb.torproject.org/torproject.org stretch main
內容
/etc/apt/sources.list.d/*
:### THIS FILE IS AUTOMATICALLY CONFIGURED ### # You may comment out this entry, but any other modifications may be lost. deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main ### THIS FILE IS AUTOMATICALLY CONFIGURED ### # You may comment out this entry, but any other modifications may be lost. deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main deb http://ppa.launchpad.net/js-reynaud/kicad-4/ubuntu xenial main # deb-src http://ppa.launchpad.net/js-reynaud/kicad-4/ubuntu xenial main deb http://ppa.launchpad.net/js-reynaud/kicad-4/ubuntu xenial main # deb-src http://ppa.launchpad.net/js-reynaud/kicad-4/ubuntu xenial main deb http://ppa.launchpad.net/kivy-team/kivy/ubuntu xenial main # deb-src http://ppa.launchpad.net/kivy-team/kivy/ubuntu xenial main # deb-src http://ppa.launchpad.net/kivy-team/kivy/ubuntu xenial main deb http://ppa.launchpad.net/kivy-team/kivy/ubuntu xenial main # deb-src http://ppa.launchpad.net/kivy-team/kivy/ubuntu xenial main # deb-src http://ppa.launchpad.net/kivy-team/kivy/ubuntu xenial main deb http://ppa.launchpad.net/linuxgndu/sqlitebrowser-testing/ubuntu xenial main # deb-src http://ppa.launchpad.net/linuxgndu/sqlitebrowser-testing/ubuntu xenial main deb http://ppa.launchpad.net/linuxgndu/sqlitebrowser-testing/ubuntu xenial main # deb-src http://ppa.launchpad.net/linuxgndu/sqlitebrowser-testing/ubuntu xenial main deb http://ppa.launchpad.net/overcoder/hexchat/ubuntu xenial main # deb-src http://ppa.launchpad.net/overcoder/hexchat/ubuntu xenial main deb http://ppa.launchpad.net/overcoder/hexchat/ubuntu xenial main # deb-src http://ppa.launchpad.net/overcoder/hexchat/ubuntu xenial main deb https://dl.bintray.com/sbt/debian / deb https://dl.bintray.com/sbt/debian / deb [arch=amd64] https://repo.skype.com/deb stable main ### TeamViewer DEB repository list ### NOTE: Manual changes to this file ### - prevent it from being updated by TeamViewer package updates ### - will be lost after using the 'teamviewer repo' command ### The original file can be restored with this command: ### cp /opt/teamviewer/tv_bin/script/teamviewer.list /etc/apt/sources.list.d/teamviewer.list ### which has the same effect as 'teamviewer repo default' ### NOTE: It is preferred to use the following commands to edit this file: ### teamviewer repo - show current repository configuration ### teamviewer repo default - restore default configuration ### teamviewer repo disable - disable the repository ### teamviewer repo main [stable] - make all TeamViewer packages available (default) ### teamviewer repo tv13 [stable] - make TeamViewer 13 packages available ### stable omit preview and beta releases ### Choose stable main to receive updates for TeamViewer 13 and upcoming major releases ### Choose preview main to receive early updates for TeamViewer 13 and to receive major beta releases ### Choose stable tv13 to receive updates for TeamViewer 13 ### Choose preview tv13 to receive early updates for TeamViewer 13 deb http://linux.teamviewer.com/deb stable main deb http://linux.teamviewer.com/deb preview main # deb http://linux.teamviewer.com/deb stable tv13 # deb http://linux.teamviewer.com/deb preview tv13 deb http://ppa.launchpad.net/webupd8team/tor-browser/ubuntu xenial main # deb-src http://ppa.launchpad.net/webupd8team/tor-browser/ubuntu xenial main deb http://ppa.launchpad.net/webupd8team/tor-browser/ubuntu xenial main # deb-src http://ppa.launchpad.net/webupd8team/tor-browser/ubuntu xenial main deb http://archive.ubuntu.com/ubuntu wily main universe deb http://archive.ubuntu.com/ubuntu wily main universe deb http://ppa.launchpad.net/wireshark-dev/stable/ubuntu xenial main # deb-src http://ppa.launchpad.net/wireshark-dev/stable/ubuntu xenial main deb http://ppa.launchpad.net/wireshark-dev/stable/ubuntu xenial main # deb-src http://ppa.launchpad.net/wireshark-dev/stable/ubuntu xenial main # channel for the xenial (16.04) partner channel # #:description:This channel contains the partner software for xenial deb http://archive.canonical.com/ubuntu xenial partner # channel for the xenial (16.04) partner channel # #:description:This channel contains the partner software for xenial deb http://archive.canonical.com/ubuntu xenial partner
您收到該錯誤是因為 Wily (15.10) 已達到其生命週期的盡頭,因此已被存檔。
如果您真的在執行 16.04,則不需要 Wily 儲存庫,您可以將它們從
/etc/apt/sources.list
文件中刪除,或者其中的任何文件/etc/apt/sources.list.d
引用 Wuly。這將避免您在執行時遇到的錯誤apt-get update
。或者,如果出於某種原因絕對需要 Wily 儲存庫,您可以使用old-releases.ubuntu.com
而不是。archive.ubuntu.com
但是,如果您仍在執行 15.10,則應升級到 16.04。