docker-ce:取决于:libseccomp2(> = 2.3.0)但要安装2.2.3-3ubuntu3 [英] docker-ce : Depends: libseccomp2 (>= 2.3.0) but 2.2.3-3ubuntu3 is to be installed

查看:1030
本文介绍了docker-ce:取决于:libseccomp2(> = 2.3.0)但要安装2.2.3-3ubuntu3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

im在我的ubuntu机器上安装docker并按照本教程进行im https://docs.docker. com/engine/installation/linux/docker-ce/ubuntu/#extra-steps-for-aufs

im installing docker on my ubuntu machine and im following this tutorial https://docs.docker.com/engine/installation/linux/docker-ce/ubuntu/#extra-steps-for-aufs

当我运行sudo apt-get install -y docker-ce时 它没有在我的机器上安装docker并给出以下错误

when i run sudo apt-get install -y docker-ce it does not install docker on my machine and giving following error

$ sudo apt-get install -y docker-ce
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 docker-ce : Depends: libseccomp2 (>= 2.3.0) but 2.2.3-3ubuntu3 is to be installed
E: Unable to correct problems, you have held broken packages.

当我运行sudo apt-get install libseccomp2时,它已经安装在我的系统中,并且当我尝试在计算机上安装docker时仍然出现相同的错误.

When i run sudo apt-get install libseccomp2, it already installed in my system and still getting same error when i try to install docker on my machine.

这是我的Ubuntu操作系统的信息

Here is the information of my Ubuntu OS

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.2 LTS"
NAME="Ubuntu"
VERSION="16.04.2 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.2 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial

推荐答案

在安装docker-ce版本18时遇到相同的问题.我不会使用aptitude安装旧版本,因为nvidia-docker仅支持上述docker版本. 18!

I encounter the same problem when installing docker-ce version 18. I won't use aptitude to install the old version because nvidia-docker only supports docker version above 18!

解决方案非常简单:

sudo add-apt-repository ppa:ubuntu-sdk-team/ppa
sudo apt-get update

然后您可以使用命令sudo apt-get install docker-ce解决libseccomp2版本冲突问题.

Then you can use command sudo apt-get install docker-ce to solve the libseccomp2 version conflict problem.

参考: https://gist.github.com/mingrui/187f0e629007443268ce8c1414012ed5

这篇关于docker-ce:取决于:libseccomp2(> = 2.3.0)但要安装2.2.3-3ubuntu3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆