Recording the Way

Ubuntu:如何解决用命令安装docker-Engine遇到的问题

2017/12/19

在Ubuntu上用terminal安装Docker-engine时会出现以下问题:

following packages have unmet dependencies: ```
1
2
```docker-engine :
```
1
2
```libsystemd-journal0 (>= 201) but it is not installable
aufs-tools but it is not going to be installed ```
1
2
```Recommends: cgroupfs-mount but it is not going to be installed or cgroup-lite but it is not going to be installed

E: Unable to correct problems, you have held broken packages.

意思是说要安装docker-engine还需要几个缺少的依赖包,除了libsystemd-journal0sudo apt install 无法安装,其他的都可以顺利安装。那么,如何解决剩下的那个呢?下面是github上给出的方法,已经试用OK,分享出来:

jordancrawfordnz commented:

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.

这是链接地址:link

CATALOG
  1. 1. jordancrawfordnz commented: