在Ubuntu上用terminal安装Docker-engine时会出现以下问题:
|
|
|
|
|
|
E: Unable to correct problems, you have held broken packages.
意思是说要安装docker-engine还需要几个缺少的依赖包,除了libsystemd-journal0用 sudo 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