Неудовлетворенные зависимости в Ubuntu 18.04 при установке драйвера Nvidia в контейнер Docker - PullRequest
0 голосов
/ 09 марта 2020

Я пытаюсь установить очень конкретную c версию драйвера Nvidia, 418.87.01, чтобы указать c. Это работало нормально в Ubuntu 16.04, поэтому я не уверен, что именно я делаю здесь не так.

Вот соответствующая часть Dockerfile:

ENV DEBIAN_FRONTEND noninteractive 

RUN echo 'DPkg::options { "--force-confdef"; "--force-confnew"; }' >> /etc/apt/apt.conf.d/local

# Remove CUDA and NVIDIA drivers
RUN apt-get update && \
    apt-get install -y update-manager-core apt-transport-https ca-certificates && \
    apt-get install -y apt dpkg && \
    apt-mark unhold nvidia* cuda* && \
    apt-get purge -y --assume-yes nvidia-* cuda*

RUN rm -rf /usr/local/cuda*

# Install without gnupg-curl
RUN apt-get update && \
    curl -ks http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub | apt-key add - && \
    echo "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 /" > /etc/apt/sources.list.d/cuda.list && \
    apt-get update && \
    apt-get install cuda-drivers=418.87.01-1 nvidia-driver-418=418.87.01-0ubuntu1 nvidia-384-dev=418.87.01-0ubuntu1 libcuda1-384=418.87.01-0ubuntu1 nvidia-opencl-icd-384=418.87.01-0ubuntu1 cuda=10.1* --yes --no-install-recommends --no-install-suggests

RUN echo "deb http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64 /" > /etc/apt/sources.list.d/nvidia-ml.list

RUN apt-mark hold nvidia* cuda*

Вот сообщения об ошибках, которые я получаю :

The following packages have unmet dependencies:
nvidia-driver-418 : Depends: libnvidia-gl-418 (= 418.87.01-0ubuntu1) but 430.50-0ubuntu0.18.04.2 is to be installed
Depends: nvidia-dkms-418 (= 418.87.01-0ubuntu1) but 430.50-0ubuntu0.18.04.2 is to be installed
Depends: nvidia-kernel-source-418 (= 418.87.01-0ubuntu1) but 430.50-0ubuntu0.18.04.2 is to be installed
Depends: libnvidia-compute-418 (= 418.87.01-0ubuntu1) but 430.50-0ubuntu0.18.04.2 is to be installed
Depends: nvidia-compute-utils-418 (= 418.87.01-0ubuntu1) but 430.50-0ubuntu0.18.04.2 is to be installed
Depends: libnvidia-decode-418 (= 418.87.01-0ubuntu1) but 430.50-0ubuntu0.18.04.2 is to be installed
Depends: libnvidia-encode-418 (= 418.87.01-0ubuntu1) but 430.50-0ubuntu0.18.04.2 is to be installed
Depends: nvidia-utils-418 (= 418.87.01-0ubuntu1) but 430.50-0ubuntu0.18.04.2 is to be installed
Depends: xserver-xorg-video-nvidia-418 (= 418.87.01-0ubuntu1) but 430.50-0ubuntu0.18.04.2 is to be installed
Depends: libnvidia-cfg1-418 (= 418.87.01-0ubuntu1) but 430.50-0ubuntu0.18.04.2 is to be installed
Depends: libnvidia-ifr1-418 (= 418.87.01-0ubuntu1) but 430.50-0ubuntu0.18.04.2 is to be installed
Depends: libnvidia-fbc1-418 (= 418.87.01-0ubuntu1) but 430.50-0ubuntu0.18.04.2 is to be installed
Mar 09 2020 15:07:57 +0550  [91mE: Unable to correct problems, you have held broken packages.
...