のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

nvidia-docker2 : Depends: docker-ce

$  curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | \
> sudo apt-key add -
OK
$ curl -s -L https://nvidia.github.io/nvidia-docker/ubuntu16.04/amd64/nvidia-docker.list | \
> sudo tee /etc/apt/sources.list.d/nvidia-docker.list

deb https://nvidia.github.io/libnvidia-container/ubuntu16.04/$(ARCH) /
deb https://nvidia.github.io/nvidia-container-runtime/ubuntu16.04/$(ARCH) /
deb https://nvidia.github.io/nvidia-docker/ubuntu16.04/$(ARCH) /
m_fujii@none11:~$ sudo apt-get update
Hit:1 http://jp.archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://jp.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]    
Ign:3 http://dl.google.com/linux/chrome-remote-desktop/deb stable InRelease    
Get:4 http://jp.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]  
Ign:5 http://dl.google.com/linux/chrome/deb stable InRelease                   
Get:6 https://nvidia.github.io/libnvidia-container/ubuntu16.04/amd64  InRelease [1,106 B]
Get:7 https://nvidia.github.io/nvidia-container-runtime/ubuntu16.04/amd64  InRelease [1,136 B]
Get:8 https://nvidia.github.io/nvidia-docker/ubuntu16.04/amd64  InRelease [1,129 B]
Hit:9 http://dl.google.com/linux/chrome-remote-desktop/deb stable Release      
Hit:10 https://download.docker.com/linux/ubuntu xenial InRelease               
Hit:11 http://dl.google.com/linux/chrome/deb stable Release                    
Hit:12 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu xenial InRelease   
Hit:13 http://security.ubuntu.com/ubuntu xenial-security InRelease       
Get:14 https://nvidia.github.io/libnvidia-container/ubuntu16.04/amd64  Packages [4,860 B]
Get:16 https://nvidia.github.io/nvidia-container-runtime/ubuntu16.04/amd64  Packages [6,044 B]
Get:17 https://nvidia.github.io/nvidia-docker/ubuntu16.04/amd64  Packages [6,096 B]
Fetched 236 kB in 1s (168 kB/s)                                
Reading package lists... Done
$ sudo apt-get install nvidia-docker2
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:
 nvidia-docker2 : Depends: docker-ce (= 18.06.1~ce~3-0~ubuntu) but 2:18.09.0~ce~0.4.tp4-0~ubuntu is to be installed or
                           docker-ee (= 18.06.1~ee~3-0~ubuntu) but it is not installable
E: Unable to correct problems, you have held broken packages.
~$ dpkg -l *nvidia*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                      Version           Architecture      Description
+++-=========================-=================-=================-=======================================================
ii  nvidia-367                375.66-0ubuntu0.1 amd64             Transitional package for nvidia-375
ii  nvidia-375                384.130-0ubuntu0. amd64             Transitional package for nvidia-384
ii  nvidia-384                384.130-0ubuntu0. amd64             NVIDIA binary driver - version 384.130
un  nvidia-common             <none>            <none>            (no description available)
un  nvidia-driver-binary      <none>            <none>            (no description available)
un  nvidia-legacy-340xx-vdpau <none>            <none>            (no description available)
un  nvidia-libopencl1-384     <none>            <none>            (no description available)
un  nvidia-libopencl1-dev     <none>            <none>            (no description available)
un  nvidia-opencl-icd         <none>            <none>            (no description available)
ii  nvidia-opencl-icd-384     384.130-0ubuntu0. amd64             NVIDIA OpenCL ICD
un  nvidia-persistenced       <none>            <none>            (no description available)
ii  nvidia-prime              0.8.2             amd64             Tools to enable NVIDIA's Prime
ii  nvidia-settings           396.54-0ubuntu0~g amd64             Tool for configuring the NVIDIA graphics driver
un  nvidia-settings-binary    <none>            <none>            (no description available)
un  nvidia-smi                <none>            <none>            (no description available)
un  nvidia-vdpau-driver       <none>            <none>            (no description available)
$ dpkg -l '*docker*'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                      Version           Architecture      Description
+++-=========================-=================-=================-=======================================================
un  docker                    <none>            <none>            (no description available)
ii  docker-ce                 2:18.09.0~ce~0.4. amd64             Docker: the open-source application container engine
ii  docker-ce-cli             2:18.09.0~ce~0.4. amd64             Docker CLI: the open-source application container engin
un  docker-engine             <none>            <none>            (no description available)
un  docker-engine-cs          <none>            <none>            (no description available)
un  docker.io                 <none>            <none>            (no description available)
un  lxc-docker                <none>            <none>            (no description available)
un  lxc-docker-virtual-packag <none>            <none>            (no description available)
$ docker --version
Docker version 18.09.0-ce-tp4, build 33764aa