2017-07-28 262 views
0

根據指令裝泊塢窗:錯誤安裝搬運工

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 
+0

你安裝企業版。你爲什麼不聯繫Docker尋求支持?替代嘗試這個,而不是:https://docs.docker.com/engine/installation/linux/docker-ce/ubuntu/ –

回答

0

有對Ubuntu 14.04的linux-image-預算外資金*包,這讓泊塢窗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) <[email protected]> 
sub 4096R/91A29FA3 2017-02-22 
$ sudo add-apt-repository \ 
    "deb [arch=amd64] <DOCKER-EE-URL>/ubuntu \ 
    $(lsb_release -cs) \ 
    stable-17.03" 

泊塢窗-EE的最後一個安裝步驟: -

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

希望這對你的作品。

+0

我早些時候安裝這些包 –

+0

嘗試徹底刪除碼頭並重新安裝它,這是你留下的選項,因爲當我安裝它時出現了一個問題,但是我遵循了上述的事情並且工作。 –

0

,你可以嘗試運行

$ 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