libzmq3-dev : Depends: libzmq3 (= 4.0.4+dfsg-2) but 4.0.4+dfsg-2ubuntu0.1 is to be installed
Docfileを最小にしてみた。
Dockfile FROM nvidia/cuda:8.0-cudnn5-devel-ubuntu14.04
docker build -t test/gen:1.0 . docker run -name env1 test/gen:1.0 docker exec -ti env1 /bin/bash
root@1b2ddc8a7791:/# apt-get update Ign http://archive.ubuntu.com trusty InRelease Ign https://developer.download.nvidia.com InRelease Ign https://developer.download.nvidia.com InRelease Get:1 http://archive.ubuntu.com trusty-updates InRelease [65.9 kB] Get:2 http://archive.ubuntu.com trusty-backports InRelease [65.9 kB] Get:3 http://security.ubuntu.com trusty-security InRelease [65.9 kB] Get:4 http://archive.ubuntu.com trusty Release.gpg [933 B] Get:5 http://security.ubuntu.com trusty-security/universe Sources [95.2 kB] Get:6 http://archive.ubuntu.com trusty-updates/universe Sources [259 kB] Get:7 http://archive.ubuntu.com trusty-updates/main amd64 Packages [1370 kB] Get:8 http://security.ubuntu.com trusty-security/main amd64 Packages [951 kB] Get:9 http://security.ubuntu.com trusty-security/restricted amd64 Packages [18.1 kB] Get:10 http://security.ubuntu.com trusty-security/universe amd64 Packages [308 kB] Get:11 http://security.ubuntu.com trusty-security/multiverse amd64 Packages [4721 B] Get:12 http://archive.ubuntu.com trusty-updates/restricted amd64 Packages [21.4 kB] Get:13 http://archive.ubuntu.com trusty-updates/universe amd64 Packages [603 kB] Get:14 http://archive.ubuntu.com trusty-updates/multiverse amd64 Packages [16.0 kB] Get:15 http://archive.ubuntu.com trusty-backports/main amd64 Packages [14.7 kB] Get:16 http://archive.ubuntu.com trusty-backports/restricted amd64 Packages [40 B] Get:17 http://archive.ubuntu.com trusty-backports/universe amd64 Packages [52.5 kB] Get:18 http://archive.ubuntu.com trusty-backports/multiverse amd64 Packages [1392 B] Get:19 http://archive.ubuntu.com trusty Release [58.5 kB] Get:20 http://archive.ubuntu.com trusty/universe Sources [7926 kB] Get:21 http://archive.ubuntu.com trusty/main amd64 Packages [1743 kB] Get:22 http://archive.ubuntu.com trusty/restricted amd64 Packages [16.0 kB] Get:23 http://archive.ubuntu.com trusty/universe amd64 Packages [7589 kB] Get:24 http://archive.ubuntu.com trusty/multiverse amd64 Packages [169 kB] Fetched 21.6 MB in 1min 35s (225 kB/s) Reading package lists... Done
root@1b2ddc8a7791:/# apt-get install -y --no-install-recommends language-pack-ja-base=1:14.04+20160720 Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: language-pack-ja The following NEW packages will be installed: language-pack-ja language-pack-ja-base 0 upgraded, 2 newly installed, 0 to remove and 4 not upgraded. Need to get 1993 kB of archives. After this operation, 9234 kB of additional disk space will be used. Get:1 http://archive.ubuntu.com/ubuntu/ trusty-updates/main language-pack-ja-base all 1:14.04+20160720 [1992 kB] Get:2 http://archive.ubuntu.com/ubuntu/ trusty-updates/main language-pack-ja all 1:14.04+20160720 [1818 B] Fetched 1993 kB in 9s (204 kB/s) Selecting previously unselected package language-pack-ja-base. (Reading database ... 16469 files and directories currently installed.) Preparing to unpack .../language-pack-ja-base_1%3a14.04+20160720_all.deb ... Unpacking language-pack-ja-base (1:14.04+20160720) ... Selecting previously unselected package language-pack-ja. Preparing to unpack .../language-pack-ja_1%3a14.04+20160720_all.deb ... Unpacking language-pack-ja (1:14.04+20160720) ... Setting up language-pack-ja (1:14.04+20160720) ... Setting up language-pack-ja-base (1:14.04+20160720) ... Generating locales... ja_JP.UTF-8... done Generation complete.
root@1b2ddc8a7791:/# apt-get install -y --no-install-recommends language-pack-ja=1:14.04+20160720 Reading package lists... Done Building dependency tree Reading state information... Done language-pack-ja is already the newest version. language-pack-ja set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
root@1b2ddc8a7791:/# apt-get install -y --no-install-recommends libprotobuf-dev=2.5.0-9ubuntu1 Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libprotobuf-lite8 libprotobuf8 zlib1g zlib1g-dev The following NEW packages will be installed: libprotobuf-dev libprotobuf-lite8 libprotobuf8 zlib1g-dev The following packages will be upgraded: zlib1g 1 upgraded, 4 newly installed, 0 to remove and 3 not upgraded. Need to get 986 kB of archives. After this operation, 5083 kB of additional disk space will be used. Get:1 http://archive.ubuntu.com/ubuntu/ trusty-updates/main zlib1g amd64 1:1.2.8.dfsg-1ubuntu1.1 [49.8 kB] Get:2 http://archive.ubuntu.com/ubuntu/ trusty/main libprotobuf-lite8 amd64 2.5.0-9ubuntu1 [52.7 kB] Get:3 http://archive.ubuntu.com/ubuntu/ trusty/main libprotobuf8 amd64 2.5.0-9ubuntu1 [296 kB] Get:4 http://archive.ubuntu.com/ubuntu/ trusty-updates/main zlib1g-dev amd64 1:1.2.8.dfsg-1ubuntu1.1 [166 kB] Get:5 http://archive.ubuntu.com/ubuntu/ trusty/main libprotobuf-dev amd64 2.5.0-9ubuntu1 [421 kB] Fetched 986 kB in 9s (103 kB/s) (Reading database ... 16681 files and directories currently installed.) Preparing to unpack .../zlib1g_1%3a1.2.8.dfsg-1ubuntu1.1_amd64.deb ... Unpacking zlib1g:amd64 (1:1.2.8.dfsg-1ubuntu1.1) over (1:1.2.8.dfsg-1ubuntu1) ... Setting up zlib1g:amd64 (1:1.2.8.dfsg-1ubuntu1.1) ... Processing triggers for libc-bin (2.19-0ubuntu6.14) ... Selecting previously unselected package libprotobuf-lite8:amd64. (Reading database ... 16681 files and directories currently installed.) Preparing to unpack .../libprotobuf-lite8_2.5.0-9ubuntu1_amd64.deb ... Unpacking libprotobuf-lite8:amd64 (2.5.0-9ubuntu1) ... Selecting previously unselected package libprotobuf8:amd64. Preparing to unpack .../libprotobuf8_2.5.0-9ubuntu1_amd64.deb ... Unpacking libprotobuf8:amd64 (2.5.0-9ubuntu1) ... Selecting previously unselected package zlib1g-dev:amd64. Preparing to unpack .../zlib1g-dev_1%3a1.2.8.dfsg-1ubuntu1.1_amd64.deb ... Unpacking zlib1g-dev:amd64 (1:1.2.8.dfsg-1ubuntu1.1) ... Selecting previously unselected package libprotobuf-dev:amd64. Preparing to unpack .../libprotobuf-dev_2.5.0-9ubuntu1_amd64.deb ... Unpacking libprotobuf-dev:amd64 (2.5.0-9ubuntu1) ... Setting up libprotobuf-lite8:amd64 (2.5.0-9ubuntu1) ... Setting up libprotobuf8:amd64 (2.5.0-9ubuntu1) ... Setting up zlib1g-dev:amd64 (1:1.2.8.dfsg-1ubuntu1.1) ... Setting up libprotobuf-dev:amd64 (2.5.0-9ubuntu1) ... Processing triggers for libc-bin (2.19-0ubuntu6.14) ...
root@1b2ddc8a7791:/# apt-get install -y --no-install-recommends git=1:1.9.1-1ubuntu0.8 Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: git-man liberror-perl Suggested packages: gettext-base git-daemon-run git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-arch git-bzr git-cvs git-mediawiki git-svn Recommended packages: rsync ssh-client The following NEW packages will be installed: git git-man liberror-perl 0 upgraded, 3 newly installed, 0 to remove and 3 not upgraded. Need to get 3394 kB of archives. After this operation, 22.0 MB of additional disk space will be used. Get:1 http://archive.ubuntu.com/ubuntu/ trusty/main liberror-perl all 0.17-1.1 [21.1 kB] Get:2 http://archive.ubuntu.com/ubuntu/ trusty-updates/main git-man all 1:1.9.1-1ubuntu0.8 [701 kB] Get:3 http://archive.ubuntu.com/ubuntu/ trusty-updates/main git amd64 1:1.9.1-1ubuntu0.8 [2672 kB] Fetched 3394 kB in 5s (620 kB/s) Selecting previously unselected package liberror-perl. (Reading database ... 16798 files and directories currently installed.) Preparing to unpack .../liberror-perl_0.17-1.1_all.deb ... Unpacking liberror-perl (0.17-1.1) ... Selecting previously unselected package git-man. Preparing to unpack .../git-man_1%3a1.9.1-1ubuntu0.8_all.deb ... Unpacking git-man (1:1.9.1-1ubuntu0.8) ... Selecting previously unselected package git. Preparing to unpack .../git_1%3a1.9.1-1ubuntu0.8_amd64.deb ... Unpacking git (1:1.9.1-1ubuntu0.8) ... Setting up liberror-perl (0.17-1.1) ... Setting up git-man (1:1.9.1-1ubuntu0.8) ... Setting up git (1:1.9.1-1ubuntu0.8) ... root@1b2ddc8a7791:/#
これか、問題は。
root@1b2ddc8a7791:/# apt-get install -y --no-install-recommends libzmq3-dev=4.0.4+dfsg-2 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: libzmq3-dev : Depends: libzmq3 (= 4.0.4+dfsg-2) but 4.0.4+dfsg-2ubuntu0.1 is to be installed E: Unable to correct problems, you have held broken packages. root@1b2ddc8a7791:/#