APT-GET更新显示错误



我不会写过我写的,但发现了通过互联网解决的类似问题。我已经搜索了几乎所有的Q&一个站点,并且与4小时前完全相同的位置。我遵循文档,将docker ce安装在我的Ubuntu 17.10系统上。但是,当我尝试运行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.,我尝试编辑我的资源。清单文件,但它已阅读,我无法保存更改。另外事实,我注意到在http://ppa.launchpad.net/mc3man/xerus-media/ubuntu/上,发行文件位于Dist/Xenial文件夹中。

请帮助我解决此问题。

编辑:这是我的来源。清单文件以添加信息。

# 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问题... 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)现在让我们看看您已经安装了哪个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 

您现在已锁定并加载了吗?如果没有,我们可以继续战斗

相关内容

  • 没有找到相关文章

最新更新