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
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.
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.
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
I get ubuntu server from our ops, have the same issue
When start to digging appears than in file /etc/apt/sources.list are broken urls to packages repos
in my case it was
after change in each line ubuntu-mirror to de.archive.ubuntu.com you will get valid /etc/apt/sources.list file with urls
then
p.s. ops update old 10.04 to 16.04 and repos after update was brokend
I have same problems on linux mint 18.3 i was install manuall from : http://launchpadlibrarian.net/344879847/libseccomp2_2.3.1-2.1ubuntu2~16.04.1_amd64.deb
i dont remove old version
after install that libseccomp2 install docker-ce work like acharm.
For Ubuntu 16.04.1 or newer exists libseccomp2 in ver 2.3 in Xenial updates, to install it check if you have checked:
System settings -> Software & updates -> Updates: Recomended updates
Then:
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!
The solution is quite easy:
Then you can use command
sudo apt-get install docker-ce
to solve the libseccomp2 version conflict problem.Reference: https://gist.github.com/mingrui/187f0e629007443268ce8c1414012ed5
I had a similar problem. I got it over using
aptitude
instead ofapt
:Skip any solutions and accept the one where it claims to resolve any conflicting dependencies:
Let
aptitude
do its work and it should then installdocker-ce
.