我不会写,但我发现在互联网上解决了一个类似的问题。我搜索了几乎所有的Q& A网站,并且在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文件,但它是ReadOnly,我无法保存更改。 另外一点,我注意到在http://ppa.launchpad.net/mc3man/xerus-media/ubuntu/,Release文件位于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
答案 0 :(得分:0)
你有两个问题是混淆的,因为初学者可以使用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问题... ubuntu的docker包被发送到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包...发布这个
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
你现在被锁定并加载了吗?如果不是,我们可以继续战斗