每当我运行时,我都会收到此错误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
答案1
您收到该错误是因为 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。
答案2
您需要删除 Ubuntu Wily PPA。好像不支持。为此,请打开“软件和更新”应用程序,然后转到「其他软件」选项卡并取消选中“乌班图狡猾“ PPA,那么:
sudo apt-get update