无法安装docker

我正在尝试执行hyperledger结构(设置环境),它需要docker。 我试图寻找解决互联网安装docker,但它是无济于事。 以下是我尝试安装docker时遇到的错误。

在git bash(git)我试图使用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: init-system-helpers (>= 1.13~) but it is not installable Depends: sysv-rc (>= 2.88dsf-24) but 2.88dsf-13.10ubuntu11 is to be installed or file-rc (>= 0.8.16) but it is not installable Depends: libc6 (>= 2.17) but 2.15-0ubuntu10 is to be installed Depends: libdevmapper1.02.1 (>= 2:1.02.63) but 2:1.02.48-4ubuntu7 is to be installed 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 installable or cgroup-lite but it is not going to be installed Recommends: git but it is not going to be installed E: Unable to correct problems, you have held broken packages. 

我已经按照这个网站的每一步安装docker: https : //docs.docker.com/engine/installation/linux/ubuntulinux/

这是我试图build立hyperled织物的网站(在stream浪者外面build造的阶段,安装docker工人): http : //hyperledger-fabric.readthedocs.io/en/latest/dev-setup/build/

清理无效的软件包库:

 cd ../../etc/apt/sources.list.d sudo rm docker.list 

然后添加存储库并更新:

 sudo apt-add-repository 'deb https://apt.dockerproject.org/repo ubuntu-xenial main' sudo apt-get update sudo apt-get install docker-engine 

也许libsystemd-journal0的直接软件包下载可以帮助你。

您可以下载某些deb文件,然后使用dpkg命令安装它,但仍可能存在一些依赖性问题。 所以你最好根据这个页面修改你的/etc/apt/source.list文件(如果你需要一个64位版本的话)。

至于libsystemd-journal0你可以在/etc/apt/sources.list的尾部添加以下行:

 deb http://cz.archive.ubuntu.com/ubuntu trusty main 

然后

 sudo apt-get update 

我想其他的依赖问题也可以用类似的方法解决。

添加backports到你的apt repo:“deb http://ftp.de.debian.org/debian wheezy-backports main”

并执行:

 sudo apt-get update 

之后,

 sudo apt-get install docker-engine 

应该完好。