moby: docker-engine 1.10.2-0~trusty can't install on clean Ubuntu 64-bit 14.04.3

After a clean install of Ubuntu 14.04.3 64-bit server, I attempted to apt-get install docker-engine. The version that is queued up to install is:

peterc@vm267211-01:~$ aptitude show docker-engine
Package: docker-engine            
State: not installed
Version: 1.10.2-0~trusty
Priority: optional
Section: admin
Maintainer: Docker <support@docker.com>
Architecture: amd64
Uncompressed Size: 43.2 M
Depends: iptables, init-system-helpers (>= 1.13~), sysv-rc (>= 2.88dsf-24) | file-rc (>= 0.8.16), libapparmor1 (>=
         2.6~devel), libc6 (>= 2.17), libdevmapper1.02.1 (>= 2:1.02.63), libsystemd-journal0 (>= 201)
Recommends: aufs-tools, ca-certificates, cgroupfs-mount | cgroup-lite, git, xz-utils, apparmor, yubico-piv-tool (>= 1.1.0~)
Conflicts: docker (< 1.5~), docker (< 1.5~), docker-engine-cs, docker-engine-cs, docker.io, docker.io, lxc-docker,
           lxc-docker, lxc-docker-virtual-package, lxc-docker-virtual-package
Description: Docker: the open-source application container engine
 Docker is an open source project to build, ship and run any application as a lightweight container 

 Docker containers are both hardware-agnostic and platform-agnostic. This means they can run anywhere, from your laptop to
 the largest EC2 compute instance and everything in between - and they don't require you to use a particular language,
 framework or packaging system. That makes them great building blocks for deploying and scaling web apps, databases, and
 backend services without depending on a particular stack or provider.
Homepage: https://dockerproject.org

peterc@vm267211-01:~$ 

I’ve checked necessary dependencies as documented in the Docker install docs for Ubuntu 14, for example:

peterc@vm267211-01:~$ aptitude search linux-image-extra
i A linux-image-extra-3.19.0-25-generic                   - Linux kernel extra modules for version 3.19.0 on 64 bit x86 SMP
peterc@vm267211-01:~$ 

When I run the apt-get install, I get the following output:

peterc@vm267211-01:~$ sudo apt-get install docker-engine
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-engine : Depends: libsystemd-journal0 (>= 201) but it is not installable
                 Recommends: aufs-tools but it is not installable
                 Recommends: cgroupfs-mount but it is not installable or
                             cgroup-lite but it is not installable
                 Recommends: git but it is not installable
                 Recommends: yubico-piv-tool (>= 1.1.0~) but it is not installable
E: Unable to correct problems, you have held broken packages.
peterc@vm267211-01:~$ 

This is a repeatable error.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 22 (5 by maintainers)

Most upvoted comments

I seem to have resolved this by putting deb http://cz.archive.ubuntu.com/ubuntu trusty main in /etc/apt/sources.list (as mentioned on the Ubuntu site at http://packages.ubuntu.com/trusty/i386/libsystemd-journal0/download), then doing apt-get update, apt-get install libsystemd-journal0 and apt-get install docker-engine.

Same problem here, fix with:

sudo shutdown -r now

This is happening when there is incompatibility in Ubuntu version and entry in docker.list

Ex: I have faced this when i have deb https://apt.dockerproject.org/repo ubuntu-trusty main in docker.list with my Ubuntu Wily 15.10

same problem meet, I got success from below actions:

  1. download libsystemd-journal0_204-14-bpo70+1_amd64.deb http://ftp.cn.debian.org/debian/pool/main/s/systemd/libsystemd-journal0_204-14~bpo70+1_amd64.deb
  2. dpkg -i libsystemd-journal0_204-14-bpo70+1_amd64.deb
  3. apt-get install libltdl7
  4. dpkg -i docker-engine_…deb

@LDX-MCPE Ubuntu 15.04 is EOL and no longer supported, so that’s likely the issue you’re running into. I suggest to upgrade to 15.10, because you also won’t be getting security patches from Ubuntu on that version.

1.10.3-0~trusty installs successfully.

Under certain conditions, sources.lst is not updated at the end of the install process. It then just contains the reference to the installer CD. Your sources selection from the installer is kept in /etc/apt/sources.list.apt-setup. I experienced this several times with minimal virtual installations of Ubuntu 14.04 and fixed it with

cat /etc/apt/sources.list.apt-setup > /etc/apt/sources.list