"sudo apt update" 而我得到的只是(目标内容被多次配置),(存储库没有发布文件),(404 not found)
"sudo apt update" and all I get is (target content is configured multiple times), (the repository does not have a Release file), (404 not found)
这是我第一次在我的系统上安装 linux,我觉得这里有很多乱七八糟的东西,我对尝试更新系统时遇到的太多错误感到无助,当使用终端时使用此命令:
sudo apt update
我从这 3 种类型中得到了很多错误:
- (目标内容配置多次)
- (仓库没有发布文件)
- (未找到错误 404)
知道我搜索了很多主题都无法解决我的系统问题。
这是我写 "sudo apt update"
后得到的输出
Ign:1 cdrom://Ubuntu 17.04 _Zesty Zapus_ - Release amd64 (20170412) zesty InRelease
Err:2 cdrom://Ubuntu 17.04 _Zesty Zapus_ - Release amd64 (20170412) zesty Release
Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Ign:3 http://download.videolan.org/pub/debian/stable InRelease
Ign:4 http://deb.torproject.org/torproject.org artful InRelease
Ign:5 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:6 http://download.videolan.org/pub/debian/stable Release
Ign:7 http://eg.archive.ubuntu.com/ubuntu zesty InRelease
Hit:8 http://archive.canonical.com/ubuntu artful InRelease
Hit:9 https://repo.skype.com/deb stable InRelease
Hit:10 http://dl.google.com/linux/chrome/deb stable Release
Ign:11 http://security.ubuntu.com/ubuntu zesty-security InRelease
Hit:12 http://us.archive.ubuntu.com/ubuntu artful InRelease
Ign:13 http://eg.archive.ubuntu.com/ubuntu zesty-updates InRelease
Hit:14 http://ppa.launchpad.net/atareao/atareao/ubuntu artful InRelease
Hit:15 http://repo.steampowered.com/steam precise InRelease
Err:16 http://deb.torproject.org/torproject.org artful Release
Connection failed [IP: 82.195.75.101 80]
Ign:17 http://eg.archive.ubuntu.com/ubuntu zesty-backports InRelease
Err:18 http://security.ubuntu.com/ubuntu zesty-security Release
404 Not Found [IP: 91.189.91.26 80]
Get:19 http://us.archive.ubuntu.com/ubuntu artful-updates InRelease [81.7 kB]
Hit:20 http://ppa.launchpad.net/atareao/telegram/ubuntu artful InRelease
Hit:21 https://deb.opera.com/opera-stable stable InRelease
Err:22 http://eg.archive.ubuntu.com/ubuntu zesty Release
404 Not Found [IP: 91.189.88.152 80]
Hit:23 https://download.sublimetext.com apt/stable/ InRelease
Err:24 http://eg.archive.ubuntu.com/ubuntu zesty-updates Release
404 Not Found [IP: 91.189.88.152 80]
Hit:25 http://ppa.launchpad.net/atareao/telegram/ubuntu zesty InRelease
Err:26 http://eg.archive.ubuntu.com/ubuntu zesty-backports Release
404 Not Found [IP: 91.189.88.152 80]
Hit:27 http://ppa.launchpad.net/dansmith/chirp-snapshots/ubuntu artful InRelease
Get:28 http://us.archive.ubuntu.com/ubuntu artful-backports InRelease [72.2 kB]
Hit:29 http://ppa.launchpad.net/diesch/testing/ubuntu artful InRelease
Hit:31 http://ppa.launchpad.net/eugenesan/ppa/ubuntu artful InRelease
Get:32 http://us.archive.ubuntu.com/ubuntu artful-security InRelease [78.6 kB]
Hit:33 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu artful InRelease
Hit:34 http://ppa.launchpad.net/i2p-maintainers/i2p/ubuntu artful InRelease
Hit:35 http://ppa.launchpad.net/libreoffice/ppa/ubuntu artful InRelease
Hit:36 http://ppa.launchpad.net/libreoffice/ppa/ubuntu zesty InRelease
Hit:37 http://ppa.launchpad.net/linuxgndu/sqlitebrowser/ubuntu artful InRelease
Hit:38 http://ppa.launchpad.net/linuxgndu/sqlitebrowser-testing/ubuntu artful InRelease
Hit:39 http://ppa.launchpad.net/noobslab/apps/ubuntu artful InRelease
Hit:40 http://ppa.launchpad.net/numix/ppa/ubuntu artful InRelease
Hit:41 http://ppa.launchpad.net/otto-kesselgulasch/gimp/ubuntu artful InRelease
Hit:42 http://ppa.launchpad.net/peterlevi/ppa/ubuntu artful InRelease
Hit:43 http://ppa.launchpad.net/pmjdebruijn/darktable-release/ubuntu artful InRelease
Hit:44 http://ppa.launchpad.net/stebbins/handbrake-releases/ubuntu artful InRelease
Hit:46 http://ppa.launchpad.net/stebbins/handbrake-releases/ubuntu zesty InRelease
Hit:47 http://ppa.launchpad.net/team-xbmc/ppa/ubuntu artful InRelease
Hit:48 http://ppa.launchpad.net/team-xbmc/ppa/ubuntu zesty InRelease
Hit:49 http://ppa.launchpad.net/webupd8team/atom/ubuntu artful InRelease
Hit:50 http://ppa.launchpad.net/webupd8team/atom/ubuntu zesty InRelease
Hit:51 http://ppa.launchpad.net/webupd8team/brackets/ubuntu artful InRelease
Hit:52 http://ppa.launchpad.net/webupd8team/brackets/ubuntu zesty InRelease
Hit:53 http://ppa.launchpad.net/webupd8team/java/ubuntu artful InRelease
Hit:54 http://ppa.launchpad.net/webupd8team/java/ubuntu zesty InRelease
Hit:55 http://ppa.launchpad.net/webupd8team/y-ppa-manager/ubuntu artful InRelease
Reading package lists... Done
E: The repository 'cdrom://Ubuntu 17.04 _Zesty Zapus_ - Release amd64 (20170412) zesty 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.
E: The repository 'http://deb.torproject.org/torproject.org artful 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.
E: The repository 'http://security.ubuntu.com/ubuntu zesty-security 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.
E: The repository 'http://eg.archive.ubuntu.com/ubuntu zesty 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.
E: The repository 'http://eg.archive.ubuntu.com/ubuntu zesty-updates 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.
E: The repository 'http://eg.archive.ubuntu.com/ubuntu zesty-backports 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.
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome-stable.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome-stable.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/google-chrome-stable.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/google-chrome-stable.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list.d/google-chrome-stable.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/google-chrome-stable.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/google-chrome-stable.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target Contents-deb (main/Contents-amd64) is configured multiple times in /etc/apt/sources.list.d/google-chrome-stable.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target Contents-deb (main/Contents-all) is configured multiple times in /etc/apt/sources.list.d/google-chrome-stable.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome-stable.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome-stable.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/google-chrome-stable.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/google-chrome-stable.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list.d/google-chrome-stable.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/google-chrome-stable.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/google-chrome-stable.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target Contents-deb (main/Contents-amd64) is configured multiple times in /etc/apt/sources.list.d/google-chrome-stable.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target Contents-deb (main/Contents-all) is configured multiple times in /etc/apt/sources.list.d/google-chrome-stable.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
存储库更新命令的error/warning输出与您的存储库设置有关。这些设置位于 /etc/apt/sources.list.d/<file>
和 /etc/apt/sources.list
.
内
首先,您应该注释掉位于 cdrom 的所有存储库,因为您真的不想使用 CD-ROM 安装介质中的软件包...
其余错误与不安全连接(纯 HTTP)或存储库失效(404,发布文件)有关。您可能应该像 cdrom 那样做 - 将它们注释掉。
我遇到了类似的问题,这是多次显示的错误
W: Target Packages (non-free/binary-amd64/Packages)
is configured multiple times in /etc/apt/sources.list:51
and /etc/apt/sources.list.d/opera-stable.list:4
我是这样改的
在您的终端中输入以下命令
sudo nano /etc/apt/sources.list
注释掉导致问题的行。
保存您的更改。
输出只是一个警告,表明您在主 sources.list 文件和名为 google-chrome.list 的特殊文件中有相同的条目。
您可以忍受它或删除该文件,因为它不需要。
为此,打开终端并运行
sudo rm /etc/apt/sources.list.d/google-chrome.list
然后 运行
sudo apt-get update
然后 运行
sudo apt-get upgrade
希望对你有所帮助。
或者...只需关闭您的 VPN。 运行
sudo apt update
这应该会给您正常的结果。似乎 VPN 和代理几乎会干扰更新。
这是我第一次在我的系统上安装 linux,我觉得这里有很多乱七八糟的东西,我对尝试更新系统时遇到的太多错误感到无助,当使用终端时使用此命令:
sudo apt update
我从这 3 种类型中得到了很多错误:
- (目标内容配置多次)
- (仓库没有发布文件)
- (未找到错误 404)
知道我搜索了很多主题都无法解决我的系统问题。
这是我写 "sudo apt update"
后得到的输出Ign:1 cdrom://Ubuntu 17.04 _Zesty Zapus_ - Release amd64 (20170412) zesty InRelease
Err:2 cdrom://Ubuntu 17.04 _Zesty Zapus_ - Release amd64 (20170412) zesty Release
Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Ign:3 http://download.videolan.org/pub/debian/stable InRelease
Ign:4 http://deb.torproject.org/torproject.org artful InRelease
Ign:5 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:6 http://download.videolan.org/pub/debian/stable Release
Ign:7 http://eg.archive.ubuntu.com/ubuntu zesty InRelease
Hit:8 http://archive.canonical.com/ubuntu artful InRelease
Hit:9 https://repo.skype.com/deb stable InRelease
Hit:10 http://dl.google.com/linux/chrome/deb stable Release
Ign:11 http://security.ubuntu.com/ubuntu zesty-security InRelease
Hit:12 http://us.archive.ubuntu.com/ubuntu artful InRelease
Ign:13 http://eg.archive.ubuntu.com/ubuntu zesty-updates InRelease
Hit:14 http://ppa.launchpad.net/atareao/atareao/ubuntu artful InRelease
Hit:15 http://repo.steampowered.com/steam precise InRelease
Err:16 http://deb.torproject.org/torproject.org artful Release
Connection failed [IP: 82.195.75.101 80]
Ign:17 http://eg.archive.ubuntu.com/ubuntu zesty-backports InRelease
Err:18 http://security.ubuntu.com/ubuntu zesty-security Release
404 Not Found [IP: 91.189.91.26 80]
Get:19 http://us.archive.ubuntu.com/ubuntu artful-updates InRelease [81.7 kB]
Hit:20 http://ppa.launchpad.net/atareao/telegram/ubuntu artful InRelease
Hit:21 https://deb.opera.com/opera-stable stable InRelease
Err:22 http://eg.archive.ubuntu.com/ubuntu zesty Release
404 Not Found [IP: 91.189.88.152 80]
Hit:23 https://download.sublimetext.com apt/stable/ InRelease
Err:24 http://eg.archive.ubuntu.com/ubuntu zesty-updates Release
404 Not Found [IP: 91.189.88.152 80]
Hit:25 http://ppa.launchpad.net/atareao/telegram/ubuntu zesty InRelease
Err:26 http://eg.archive.ubuntu.com/ubuntu zesty-backports Release
404 Not Found [IP: 91.189.88.152 80]
Hit:27 http://ppa.launchpad.net/dansmith/chirp-snapshots/ubuntu artful InRelease
Get:28 http://us.archive.ubuntu.com/ubuntu artful-backports InRelease [72.2 kB]
Hit:29 http://ppa.launchpad.net/diesch/testing/ubuntu artful InRelease
Hit:31 http://ppa.launchpad.net/eugenesan/ppa/ubuntu artful InRelease
Get:32 http://us.archive.ubuntu.com/ubuntu artful-security InRelease [78.6 kB]
Hit:33 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu artful InRelease
Hit:34 http://ppa.launchpad.net/i2p-maintainers/i2p/ubuntu artful InRelease
Hit:35 http://ppa.launchpad.net/libreoffice/ppa/ubuntu artful InRelease
Hit:36 http://ppa.launchpad.net/libreoffice/ppa/ubuntu zesty InRelease
Hit:37 http://ppa.launchpad.net/linuxgndu/sqlitebrowser/ubuntu artful InRelease
Hit:38 http://ppa.launchpad.net/linuxgndu/sqlitebrowser-testing/ubuntu artful InRelease
Hit:39 http://ppa.launchpad.net/noobslab/apps/ubuntu artful InRelease
Hit:40 http://ppa.launchpad.net/numix/ppa/ubuntu artful InRelease
Hit:41 http://ppa.launchpad.net/otto-kesselgulasch/gimp/ubuntu artful InRelease
Hit:42 http://ppa.launchpad.net/peterlevi/ppa/ubuntu artful InRelease
Hit:43 http://ppa.launchpad.net/pmjdebruijn/darktable-release/ubuntu artful InRelease
Hit:44 http://ppa.launchpad.net/stebbins/handbrake-releases/ubuntu artful InRelease
Hit:46 http://ppa.launchpad.net/stebbins/handbrake-releases/ubuntu zesty InRelease
Hit:47 http://ppa.launchpad.net/team-xbmc/ppa/ubuntu artful InRelease
Hit:48 http://ppa.launchpad.net/team-xbmc/ppa/ubuntu zesty InRelease
Hit:49 http://ppa.launchpad.net/webupd8team/atom/ubuntu artful InRelease
Hit:50 http://ppa.launchpad.net/webupd8team/atom/ubuntu zesty InRelease
Hit:51 http://ppa.launchpad.net/webupd8team/brackets/ubuntu artful InRelease
Hit:52 http://ppa.launchpad.net/webupd8team/brackets/ubuntu zesty InRelease
Hit:53 http://ppa.launchpad.net/webupd8team/java/ubuntu artful InRelease
Hit:54 http://ppa.launchpad.net/webupd8team/java/ubuntu zesty InRelease
Hit:55 http://ppa.launchpad.net/webupd8team/y-ppa-manager/ubuntu artful InRelease
Reading package lists... Done
E: The repository 'cdrom://Ubuntu 17.04 _Zesty Zapus_ - Release amd64 (20170412) zesty 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.
E: The repository 'http://deb.torproject.org/torproject.org artful 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.
E: The repository 'http://security.ubuntu.com/ubuntu zesty-security 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.
E: The repository 'http://eg.archive.ubuntu.com/ubuntu zesty 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.
E: The repository 'http://eg.archive.ubuntu.com/ubuntu zesty-updates 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.
E: The repository 'http://eg.archive.ubuntu.com/ubuntu zesty-backports 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.
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome-stable.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome-stable.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/google-chrome-stable.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/google-chrome-stable.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list.d/google-chrome-stable.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/google-chrome-stable.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/google-chrome-stable.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target Contents-deb (main/Contents-amd64) is configured multiple times in /etc/apt/sources.list.d/google-chrome-stable.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target Contents-deb (main/Contents-all) is configured multiple times in /etc/apt/sources.list.d/google-chrome-stable.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome-stable.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome-stable.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/google-chrome-stable.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/google-chrome-stable.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list.d/google-chrome-stable.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/google-chrome-stable.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/google-chrome-stable.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target Contents-deb (main/Contents-amd64) is configured multiple times in /etc/apt/sources.list.d/google-chrome-stable.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target Contents-deb (main/Contents-all) is configured multiple times in /etc/apt/sources.list.d/google-chrome-stable.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
存储库更新命令的error/warning输出与您的存储库设置有关。这些设置位于 /etc/apt/sources.list.d/<file>
和 /etc/apt/sources.list
.
首先,您应该注释掉位于 cdrom 的所有存储库,因为您真的不想使用 CD-ROM 安装介质中的软件包...
其余错误与不安全连接(纯 HTTP)或存储库失效(404,发布文件)有关。您可能应该像 cdrom 那样做 - 将它们注释掉。
我遇到了类似的问题,这是多次显示的错误
W: Target Packages (non-free/binary-amd64/Packages)
is configured multiple times in /etc/apt/sources.list:51
and /etc/apt/sources.list.d/opera-stable.list:4
我是这样改的
在您的终端中输入以下命令
sudo nano /etc/apt/sources.list
注释掉导致问题的行。
保存您的更改。
输出只是一个警告,表明您在主 sources.list 文件和名为 google-chrome.list 的特殊文件中有相同的条目。 您可以忍受它或删除该文件,因为它不需要。
为此,打开终端并运行
sudo rm /etc/apt/sources.list.d/google-chrome.list
然后 运行
sudo apt-get update
然后 运行
sudo apt-get upgrade
希望对你有所帮助。
或者...只需关闭您的 VPN。 运行
sudo apt update
这应该会给您正常的结果。似乎 VPN 和代理几乎会干扰更新。