apt-get 更新显示错误
apt-get update shows errors
如果我发现一个类似的问题已通过互联网解决,我就不会写了。我已经搜索了几乎所有的问答网站,但仍然停留在与 4 小时前完全相同的位置。
我严格按照文档在 Ubuntu 17.10 系统上安装 Docker CE。但是,当我尝试 运行 sudo apt-get update
时,我的控制台出现以下错误:
Ign:1 http://ppa.launchpad.net/mc3man/xerus-media/ubuntu artful InRelease
Get:2 http://security.ubuntu.com/ubuntu artful-security InRelease [78.6 kB]
Hit:3 https://download.docker.com/linux/ubuntu artful InRelease
Hit:4 http://in.archive.ubuntu.com/ubuntu artful InRelease
Err:5 http://ppa.launchpad.net/mc3man/xerus-media/ubuntu artful Release
404 Not Found
Get:6 http://in.archive.ubuntu.com/ubuntu artful-updates InRelease [78.6 kB]
Get:7 http://in.archive.ubuntu.com/ubuntu artful-backports InRelease [72.2 kB]
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/mc3man/xerus-media/ubuntu 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.
不用说,我无法继续 Docker。我该如何解决? P.S., 我尝试编辑我的 sources.list 文件,但它是只读的,我无法保存更改。
另外,我注意到在 http://ppa.launchpad.net/mc3man/xerus-media/ubuntu/ 处,发布文件位于 dist/Xenial 文件夹中。
请帮我解决这个问题。
编辑:这是我的 sources.list 文件以获取更多信息。
# deb cdrom:[Ubuntu 17.10 _Artful Aardvark_ - Release amd64 (20171018)]/ artful main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://in.archive.ubuntu.com/ubuntu/ artful main restricted
# deb-src http://in.archive.ubuntu.com/ubuntu/ artful main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://in.archive.ubuntu.com/ubuntu/ artful-updates main restricted
# deb-src http://in.archive.ubuntu.com/ubuntu/ artful-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://in.archive.ubuntu.com/ubuntu/ artful universe
# deb-src http://in.archive.ubuntu.com/ubuntu/ artful universe
deb http://in.archive.ubuntu.com/ubuntu/ artful-updates universe
# deb-src http://in.archive.ubuntu.com/ubuntu/ artful-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://in.archive.ubuntu.com/ubuntu/ artful multiverse
# deb-src http://in.archive.ubuntu.com/ubuntu/ artful multiverse
deb http://in.archive.ubuntu.com/ubuntu/ artful-updates multiverse
# deb-src http://in.archive.ubuntu.com/ubuntu/ artful-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://in.archive.ubuntu.com/ubuntu/ artful-backports main restricted universe multiverse
# deb-src http://in.archive.ubuntu.com/ubuntu/ artful-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 artful partner
# deb-src http://archive.canonical.com/ubuntu artful partner
deb http://security.ubuntu.com/ubuntu artful-security main restricted
# deb-src http://security.ubuntu.com/ubuntu artful-security main restricted
deb http://security.ubuntu.com/ubuntu artful-security universe
# deb-src http://security.ubuntu.com/ubuntu artful-security universe
deb http://security.ubuntu.com/ubuntu artful-security multiverse
# deb-src http://security.ubuntu.com/ubuntu artful-security multiverse
deb [arch=amd64] https://download.docker.com/linux/ubuntu artful stable
# deb-src [arch=amd64] https://download.docker.com/linux/ubuntu artful stable
# deb-src [arch=amd64] https://download.docker.com/linux/ubuntu artful stable
# deb-src [arch=amd64] https://download.docker.com/linux/ubuntu artful stable
# deb-src [arch=amd64] https://download.docker.com/linux/ubuntu artful stable
您将两个问题混为一谈,首先让我们在 xerus-media 上工作
cd /etc/apt
grep -r xerus *
现在编辑包含 xerus 的文件
sudo vi /etc/apt/either_sources.list_or_a_file_in_subdir
删除提到
的行
http://ppa.launchpad.net/mc3man/xerus-media/ubuntu artful Release
添加这些行
deb http://ppa.launchpad.net/mc3man/xerus-media/ubuntu xenial main
deb-src http://ppa.launchpad.net/mc3man/xerus-media/ubuntu xenial main
保存该文件并确认您不再看到提到 xerus-media 的错误
sudo apt-get update
现在讨论 docker 问题... docker ubuntu 的软件包已运送到 xenial ... 所以让我们看看您有什么...做这个
cd /etc/apt
grep -r docker *
现在编辑提到 docker 的文件,如
sudo vi /etc/apt/sources.list
现在编辑行
deb [arch=amd64] https://download.docker.com/linux/ubuntu artful stable
它的条目应该是这样的
deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable
(是的,xenial 没关系,它不是巧妙的,你仍然得到最新的 docker)现在让我们看看你安装了什么 docker 包......发布这个
dpkg -l | grep docker
你应该看到这个
ii docker-ce 17.09.0~ce-0~ubuntu amd64 Docker: the open-source application container engine
现在更新
sudo apt-get update && sudo apt-get dist-upgrade
你现在锁定并加载了吗?如果不是我们可以继续战斗
如果我发现一个类似的问题已通过互联网解决,我就不会写了。我已经搜索了几乎所有的问答网站,但仍然停留在与 4 小时前完全相同的位置。
我严格按照文档在 Ubuntu 17.10 系统上安装 Docker CE。但是,当我尝试 运行 sudo apt-get update
时,我的控制台出现以下错误:
Ign:1 http://ppa.launchpad.net/mc3man/xerus-media/ubuntu artful InRelease
Get:2 http://security.ubuntu.com/ubuntu artful-security InRelease [78.6 kB]
Hit:3 https://download.docker.com/linux/ubuntu artful InRelease
Hit:4 http://in.archive.ubuntu.com/ubuntu artful InRelease
Err:5 http://ppa.launchpad.net/mc3man/xerus-media/ubuntu artful Release
404 Not Found
Get:6 http://in.archive.ubuntu.com/ubuntu artful-updates InRelease [78.6 kB]
Get:7 http://in.archive.ubuntu.com/ubuntu artful-backports InRelease [72.2 kB]
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/mc3man/xerus-media/ubuntu 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.
不用说,我无法继续 Docker。我该如何解决? P.S., 我尝试编辑我的 sources.list 文件,但它是只读的,我无法保存更改。 另外,我注意到在 http://ppa.launchpad.net/mc3man/xerus-media/ubuntu/ 处,发布文件位于 dist/Xenial 文件夹中。
请帮我解决这个问题。
编辑:这是我的 sources.list 文件以获取更多信息。
# deb cdrom:[Ubuntu 17.10 _Artful Aardvark_ - Release amd64 (20171018)]/ artful main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://in.archive.ubuntu.com/ubuntu/ artful main restricted
# deb-src http://in.archive.ubuntu.com/ubuntu/ artful main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://in.archive.ubuntu.com/ubuntu/ artful-updates main restricted
# deb-src http://in.archive.ubuntu.com/ubuntu/ artful-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://in.archive.ubuntu.com/ubuntu/ artful universe
# deb-src http://in.archive.ubuntu.com/ubuntu/ artful universe
deb http://in.archive.ubuntu.com/ubuntu/ artful-updates universe
# deb-src http://in.archive.ubuntu.com/ubuntu/ artful-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://in.archive.ubuntu.com/ubuntu/ artful multiverse
# deb-src http://in.archive.ubuntu.com/ubuntu/ artful multiverse
deb http://in.archive.ubuntu.com/ubuntu/ artful-updates multiverse
# deb-src http://in.archive.ubuntu.com/ubuntu/ artful-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://in.archive.ubuntu.com/ubuntu/ artful-backports main restricted universe multiverse
# deb-src http://in.archive.ubuntu.com/ubuntu/ artful-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 artful partner
# deb-src http://archive.canonical.com/ubuntu artful partner
deb http://security.ubuntu.com/ubuntu artful-security main restricted
# deb-src http://security.ubuntu.com/ubuntu artful-security main restricted
deb http://security.ubuntu.com/ubuntu artful-security universe
# deb-src http://security.ubuntu.com/ubuntu artful-security universe
deb http://security.ubuntu.com/ubuntu artful-security multiverse
# deb-src http://security.ubuntu.com/ubuntu artful-security multiverse
deb [arch=amd64] https://download.docker.com/linux/ubuntu artful stable
# deb-src [arch=amd64] https://download.docker.com/linux/ubuntu artful stable
# deb-src [arch=amd64] https://download.docker.com/linux/ubuntu artful stable
# deb-src [arch=amd64] https://download.docker.com/linux/ubuntu artful stable
# deb-src [arch=amd64] https://download.docker.com/linux/ubuntu artful stable
您将两个问题混为一谈,首先让我们在 xerus-media 上工作
cd /etc/apt
grep -r xerus *
现在编辑包含 xerus 的文件
sudo vi /etc/apt/either_sources.list_or_a_file_in_subdir
删除提到
的行http://ppa.launchpad.net/mc3man/xerus-media/ubuntu artful Release
添加这些行
deb http://ppa.launchpad.net/mc3man/xerus-media/ubuntu xenial main
deb-src http://ppa.launchpad.net/mc3man/xerus-media/ubuntu xenial main
保存该文件并确认您不再看到提到 xerus-media 的错误
sudo apt-get update
现在讨论 docker 问题... docker ubuntu 的软件包已运送到 xenial ... 所以让我们看看您有什么...做这个
cd /etc/apt
grep -r docker *
现在编辑提到 docker 的文件,如
sudo vi /etc/apt/sources.list
现在编辑行
deb [arch=amd64] https://download.docker.com/linux/ubuntu artful stable
它的条目应该是这样的
deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable
(是的,xenial 没关系,它不是巧妙的,你仍然得到最新的 docker)现在让我们看看你安装了什么 docker 包......发布这个
dpkg -l | grep docker
你应该看到这个
ii docker-ce 17.09.0~ce-0~ubuntu amd64 Docker: the open-source application container engine
现在更新
sudo apt-get update && sudo apt-get dist-upgrade
你现在锁定并加载了吗?如果不是我们可以继续战斗