繁体   English   中英

安装Docker时出错

[英]Error installing docker

根据说明安装泊坞窗:

https://docs.docker.com/engine/installation/linux/docker-ee/ubuntu/#install-using-the-repository

而且我有错误:

E: Unable to locate package docker-ee

更新包索引时返回错误:

W: Failed to fetch https://download.docker.com/linux/ubuntu/dists/trusty/InRelease  Unable to find expected entry 'stable-17.03/binary-amd64/Packages' in Release file (Wrong sources.list entry or malformed file)

这是什么错误?

ps

lsb_release
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.5 LTS
Release:    14.04
Codename:   trusty

uname -a
Linux dev-Cherepanov 4.2.0-27-generic #32~14.04.1-Ubuntu SMP Fri Jan 22 15:32:26 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

ubuntu 14.04 linux-image-extra- *软件包还有一些额外的软件包,这些软件包允许Docker EE使用aufs存储驱动程序,并在其中使用命令:

 $ sudo apt-get update

$ sudo apt-get install \
    linux-image-extra-$(uname -r) \
    linux-image-extra-virtual

然后设置存储库:

$ sudo apt-get update
$ sudo apt-get install \
    apt-transport-https \
    ca-certificates \
    curl \
    software-properties-common
 $ curl -fsSL <DOCKER-EE-URL>/ubuntu/gpg | sudo apt-key add -
$ apt-key fingerprint 6D085F96

pub   4096R/6D085F96 2017-02-22
    Key fingerprint = DD91 1E99 5A64 A202 E859  07D6 BC14 F10B 6D08 5F96
uid       [ultimate] Docker Release (EE deb) <docker@docker.com>
sub   4096R/91A29FA3 2017-02-22
$ sudo add-apt-repository \
   "deb [arch=amd64] <DOCKER-EE-URL>/ubuntu \
   $(lsb_release -cs) \
   stable-17.03"

docker-ee的最后安装步骤:-

$ sudo apt-get update
$ sudo apt-get install docker-ee

希望这对您有用。

你可以尝试运行

$ sudo add-apt-repository \
    "deb [arch=amd64] <DOCKER-EE-URL>/ubuntu \
    $(lsb_release -cs) \
    stable"

$sudo add-apt-repository \
   "deb [arch=amd64] <DOCKER-EE-URL>/ubuntu \
   $(lsb_release -cs) \
   stable-17.03"

接着

$ sudo apt-get update
$ sudo apt-get install docker-ee

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM