简体   繁体   中英

Error installing docker

Installed the docker according to the instruction:

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

And i have error:

E: Unable to locate package docker-ee

When updating the index of packages return error:

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)

What is this error?

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

There are some extra packages for ubuntu 14.04 linux-image-extra-* packages, which allow Docker EE to use the aufs storage driver and here the commands for them:

 $ sudo apt-get update

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

and then set up the repository:

$ 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"

The last installation step of docker-ee:-

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

Hope this works for you.

you can try to run

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

not

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

and then

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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