gpt4 book ai didi

git - 无法安装 docker

转载 作者:行者123 更新时间:2023-12-02 18:44:32 25 4
gpt4 key购买 nike

我正在尝试做 hyperledger fabric(设置环境)并且它需要 docker。我尝试在互联网上搜索解决方法来安装 docker,但无济于事。以下是我尝试安装docker时遇到的错误。

在 git bash(git) 中,我尝试使用 sudo apt-get install docker-engine。但是它说

Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
Docker-engine: Depends: init-system-helpers (>= 1.13~) but it is not installable
Depends: sysv-rc (>= 2.88dsf-24) but 2.88dsf-13.10ubuntu11 is to be installed or
file-rc (>= 0.8.16) but it is not installable
Depends: libc6 (>= 2.17) but 2.15-0ubuntu10 is to be installed
Depends: libdevmapper1.02.1 (>= 2:1.02.63) but 2:1.02.48-4ubuntu7 is to be installed
Depends: libsystemd-journal0 (>= 201) but it is not installable
Recommends: aufs-tools but it is not going to be installed
Recommends: cgroupfs-mount but it is not installable or
cgroup-lite but it is not going to be installed
Recommends: git but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

我已经按照这个网站安装 docker 的每一步操作: https://docs.docker.com/engine/installation/linux/ubuntulinux/

这是我尝试构建 hyperledger fabric 的网站(在 vagrant 之外的构建阶段,安装 docker): http://hyperledger-fabric.readthedocs.io/en/latest/dev-setup/build/

最佳答案

清理无效的包仓库:

cd ../../etc/apt/sources.list.d
sudo rm docker.list

然后添加存储库并更新:

sudo apt-add-repository 'deb https://apt.dockerproject.org/repo ubuntu-xenial main'
sudo apt-get update
sudo apt-get install docker-engine

关于git - 无法安装 docker ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39403497/

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