无法找到包 docker-engine

pra*_*een 16 14.04 docker

我正在尝试在 vmware 中的 Ubuntu 上安装 docker,但没有成功。这些是我遇到的命令和错误。

sudo apt-get update

sudo apt-get install docker-engine
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package docker-engine
Run Code Online (Sandbox Code Playgroud)

小智 13

尝试 'uname -a' 并确保您运行的是 64 位架构:

无论您的 Ubuntu 版本如何,Docker 都需要 64 位安装。

https://docs.docker.com/engine/installation/linux/ubuntulinux/


SCB*_*gel 7

正如评论中提到的,你必须

  1. 通过以下方式找出您的发行版名称 lsb_release -c
  2. 该文件/etc/apt/sources.list.d/docker.list应具有以下内容(没有其他内容):deb https://apt.dockerproject.org/repo ubuntu-VERSION-NAME main

在我的情况下(Ubuntu 14.04 aka 'trusty')我添加了 deb https://apt.dockerproject.org/repo ubuntu-trusty main

  • 查看 https://docs.docker.com/engine/installation/linux/ubuntulinux/ 那里有关于设置 apt 和相关密钥以获取 docker 的详细说明。我通过 docker.io(由 ubuntu 维护的包)安装了它,这给我留下了一个未解决的 docker-engine 包,试图安装 nvidia-docker。在安装 docker-engine 之前,我必须卸载并清除 docker.io。 (2认同)