2016-09-09 17 views
0

私は超折り返しファブリック(環境設定)をしようとしており、ドッカーが必要です。私はドッカーをインストールするために解決のインターネットを検索しようとしたが、それは役に立たなかった。ドッカーをインストールしようとしたときに発生したエラーは次のとおりです。ドッカーをインストールできない

git bash(git)では、私はsudo apt-get install docker-engineを使ってみました。 https://docs.docker.com/engine/installation/linux/ubuntulinux/

これは私が、放浪の外を構築する段階では(hyperledgerファブリックを構築しようとしているウェブサイトです。しかし、それは私がドッキングウィンドウのインストールでは、このウェブサイトのすべての単一のステップに従っている

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. 

を語りますインストールドッカ): http://hyperledger-fabric.readthedocs.io/en/latest/dev-setup/build/

+3

を...あなたがWindows上でこれを実行しようとしていますか? – Schwern

+0

ええ、私は窓でそれをやろうとしています。 – qcc

+3

私は驚いた 'apt-get'が走った!あなたが従っている指示はWindows用ではなくLinux用です。 git bashはあなたに多くの基本的なUnixユーティリティを提供しますが、Unixではありません。これらを試してみてください:https://docs.docker.com/engine/installation/windows/ – Schwern

答えて

-2

があなたのaptリポジトリにバックポートを追加します。 "メインDEB http://ftp.de.debian.org/debian喘鳴backports" の

と実行します。その後

sudo apt-get update 

は、

sudo apt-get install docker-engine 

罰金完了する必要があります。

2

多分direct package download for libsystemd-journal0がお手伝いします。

特定のdebファイルをダウンロードしてからdpkgコマンドを使用してインストールすることはできますが、依存関係の問題がまだ残っている可能性があります。したがって、/etc/apt/source.listファイルをこのpage(64ビットバージョンが必要な場合)に従って変更する方がよいでしょう。

あなたが/etc/apt/sources.listの尾の後に次の行を追加することができますlibsystemd-journal0について:

deb http://cz.archive.ubuntu.com/ubuntu trusty main 

その後、

sudo apt-get update 

私は他の依存関係の問題は、同様の方法で解決することができると思います。

+0

これはこの問題を解決しました。 "docker-ce:Depends:libsystemd-journal0(> = 201)でもインストールできません" –

5

無効なパッケージリポジトリをクリーンアップします。

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

次にリポジトリとアップデート追加:あなたはgitのはbashを述べた

sudo apt-add-repository 'deb https://apt.dockerproject.org/repo ubuntu-xenial main' 
sudo apt-get update 
sudo apt-get install docker-engine 
関連する問題