我已经从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
有人知道如何解决这个问题吗?