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

Created on 25 Feb 2016  路  22Comments  路  Source: moby/moby

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 <[email protected]>
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.

Most helpful comment

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.

All 22 comments

If you are reporting a new issue, make sure that we do not have any duplicates already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please close your issue and add a comment to the existing issue instead.

If you suspect your issue is a bug, please edit your issue description to include the BUG REPORT INFORMATION shown below. If you fail to provide this information within 7 days, we cannot debug your issue and will close it. We will, however, reopen it if you later provide the information.

For more information about reporting issues, see CONTRIBUTING.md.

You _don't_ have to include this information if this is a _feature request_

(This is an automated, informational response)


BUG REPORT INFORMATION

Use the commands below to provide key information from your environment:

docker version:
docker info:

Provide additional environment details (AWS, VirtualBox, physical, etc.):

List the steps to reproduce the issue:
1.
2.
3.

Describe the results you received:

Describe the results you expected:

Provide additional info you think is important:

----------END REPORT ---------

ENEEDMOREINFO

Hm, wonder what that is, because just about any package (including really standard ones, e.g, git) is marked as "not installable"

@dad-is-grat how did you configure related docker repo ? is it done by ubuntu official repo or docker repo?

What is the output for apt-cache policy libsystemd-journal0 ?

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

Oh, thanks @albers, that's useful information!

Same problem for me with ubuntu:

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: yubico-piv-tool (>= 1.1.0~) but it is not installable
E: Unable to correct problems, you have held broken packages.
root@api-hogs-main:~# apt-cache policy libsystemd-journal0
libsystemd-journal0:
  Installed: (none)
  Candidate: (none)
  Version table:

Same problem here upon attempting to install docker-engine. I closely followed this installation guide.

I'm running Ubuntu 15.04 Vivid Vervet (3.19.0-51-generic).

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 going to be installed
                 Recommends: cgroupfs-mount but it is not going to be installed or
                             cgroup-lite but it is not going to be installed
                 Recommends: yubico-piv-tool (>= 1.1.0~) but it is not installable

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

@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.

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 issue. I followed the previous instructions by @jordancrawfordnz and got docker-engine installed and the hello-world fired up. My concern is that this method differs from the current official instructions.

1.10.3-0~trusty installs successfully.

Still fails for me on clean 15.10, jordancrawfordns solution works but deviates significantly from the offcial instructions...

root@ip-10-20-3-89:/home/ubuntu# 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: yubico-piv-tool (>= 1.1.0~) but it is not installable

@jordancrawfordnz Thanks a lot. I was finally able to get it installed in my Trusty.

@jordancrawfordnz You are a lifesaver, Thanks for posting that fix.

@jordancrawfordnz also works for me in my Xenial. Thank u soooo much

Same problem here, fix with:

sudo shutdown -r now

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

Ahh, @fredkan's comment revealed the problem to me: bpo means the package is from backports. This command will install the elusive libsystemd-journal0 on Trusty:

sudo apt-get install -t trusty-backports libsystemd-journal0

This also is a problem on Ubuntu 17.04 Zesty but unfortunately at time of writing there is no published sysv-rc package for zesty :(
https://packages.ubuntu.com/search?keywords=sysv-rc

thanks @jordancrawfordnz that's work for ubuntu 12.04 :smile:

Was this page helpful?
0 / 5 - 0 ratings