Я скопировал Dockerfile из https://gitlab.com/nvidia/cuda/blob/ubuntu16.04/9.0/devel/cudnn7/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
Кто-нибудь знает, как это исправить?