docker-ce: 依赖于libseccomp2(>= 2.3.0),但要安装的是2.2.3-3ubuntu3。

32

我正在我的Ubuntu机器上安装Docker,并遵循这个教程在Ubuntu上安装Docker引擎

当我运行sudo apt-get install -y docker-ce时,它没有在我的机器上安装Docker,并且出现以下错误:

$ sudo apt-get install -y docker-ce
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-ce : Depends: libseccomp2 (>= 2.3.0) but 2.2.3-3ubuntu3 is to be installed
E: Unable to correct problems, you have held broken packages.

当我运行sudo apt-get install libseccomp2时,它已经安装在我的系统中,但当我尝试在我的机器上安装Docker时仍然遇到相同的错误。

这是我的Ubuntu操作系统信息:

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.2 LTS"
NAME="Ubuntu"
VERSION="16.04.2 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.2 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial

这是一个Ubuntu相关的问题,最好在https://askubuntu.com/上提问...当你在谷歌上搜索“you have held broken packages”时...执行以下命令...sudo apt-get -f install - Scott Stensland
13个回答

1
sudo apt-get install -y libltdl7 libseccomp2

1
需要解释一下。 - Peter Mortensen

0

0
你可以强制运行 sudo apt-get -f install docker-ce docker-ce-cli

“with force”是什么意思?它可能指的是“-f”标志,但也许可以通过重新表述来澄清(通过编辑您的答案)。 - Peter Mortensen

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接