我正在尝试进行hyperledger结构(设置环境),它需要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/
这是我尝试构建超级面料的网站(在流浪者之外的建筑阶段,安装docker): http://hyperledger-fabric.readthedocs.io/en/latest/dev-setup/build/
答案 0 :(得分:6)
清理无效的软件包存储库:
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
答案 1 :(得分:4)
也许direct package download for libsystemd-journal0
可以帮到你。
您可以下载某些deb文件,然后使用dpkg
命令安装它,但可能仍然存在一些依赖性问题。因此,您最好根据此page修改/etc/apt/source.list
文件(如果您需要64位版本)。
对于libsystemd-journal0
,您可以在/etc/apt/sources.list
的尾部后添加以下行:
deb http://cz.archive.ubuntu.com/ubuntu trusty main
然后
sudo apt-get update
我猜其他依赖问题可以用类似的方式解决。
答案 2 :(得分:1)
idk 如果这有效,但试试这个:
sudo apt update
和,
sudo apt-get update
那么,
sudo apt install docker.io
在提示/需要时输入您的 sudo 密码或以 root 身份登录。 我在我的 linux 发行版中安装 docker 时试过这个。 (卡利)。 希望这对你也有用...... [也尝试更新你的 linux 发行版]
答案 3 :(得分:0)
更新源列表文件中的存储库,然后运行apt-get update
将解决此问题,
deb https://packages.docker.com/1.12/apt/repo/ ubuntu-xenial主程序 deb http://apt.dockerproject.org/repo/ Ubuntu信任的主要用户
答案 4 :(得分:-2)
向您的apt repo添加backport: " deb http://ftp.de.debian.org/debian wheezy-backports main"
并执行:
sudo apt-get update
之后,
sudo apt-get install docker-engine
应该完成。