gpt4 book ai didi

linux - 安装 docker 时出错

转载 作者:塔克拉玛干 更新时间:2023-11-03 01:19:39 25 4
gpt4 key购买 nike

按照说明安装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)

这是什么错误?

附上

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

希望这对你有用。

关于linux - 安装 docker 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45378247/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com