在将NCCL添加到我的Dockerfile时出错

时间:2018-10-14 01:50:50

标签: apt-get nvidia-docker

我已经从https://gitlab.com/nvidia/cuda/blob/ubuntu16.04/9.0/devel/cudnn7/Dockerfile复制了Dockerfile,并尝试向其中添加一行:

RUN apt-get update && apt-get install -y --no-install-recommends libnccl2

然后,当我尝试构建Dockerfile时,出现错误:

The following additional packages will be installed: 
  libnccl-dev   
The following held packages will be changed:     
  libnccl2   
The following packages will be upgraded:     
  libnccl-dev libnccl2   
2 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.   
E: Held packages were changed and -y was used without
    --allow-change-held-packages.   
The command '/bin/sh -c apt-get update && apt-get install -y --no-install-recommends libnccl2' returned a non-zero code: 100

有人知道如何解决这个问题吗?

0 个答案:

没有答案