╃苍狼山庄╃╃苍狼山庄╃

Clang出品,
必属精品!

安装docker失败:init-system-helpers (>= 1.18~) but 1.14 is to be installed

在使用阿里云的docker安装命令安装docker
阿里云docker安装:

# 公网安装:安装curl后,使用curl获取最新的Docker。
curl -sSL http://acs-public-mirror.oss-cn-hangzhou.aliyuncs.com/docker-engine/internet | sh -
# 阿里内网安装:如果您使用的是阿里云ECS,可以改为使用下面命令,通过内网下载。
$ curl -sSL http://acs-public-mirror.oss-cn-hangzhou.aliyuncs.com/docker-engine/intranet | sh -

结果失败了,提示:

Docker-engine : Depends: init-system-helpers (>= 1.18~) 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 installable
E: Unable to correct problems, you have held broken packages.

解决方法:
首先查看init-system-helpers有什么版本可以安装:

sudo apt-cache policy init-system-helpers

结果提示:

# apt-cache policy init-system-helpers
init-system-helpers:
Installed: 1.14
Candidate: 1.14
Version table:
*** 1.22 0
500 http://ftp.jp.debian.org/debian/ jessie/main amd64 Packages
100 /var/lib/dpkg/status

看结果有1.22版本可以安装,使用命令安装:

sudo apt-get install init-system-helpers=1.22
本原创文章未经允许不得转载 | 当前页面:╃苍狼山庄╃ » 安装docker失败:init-system-helpers (>= 1.18~) but 1.14 is to be installed

评论

文章评论已关闭!