apollo icon indicating copy to clipboard operation
apollo copied to clipboard

Failed to install the nvidia driver inside docker

Open wzjin2017 opened this issue 7 years ago • 6 comments

System information

  • OS Platform and Distribution (Linux Ubuntu 16.04)

  • Apollo installed from (source)

  • Apollo version (3.5)

  • my host driver version is :

nvidia-384.130

Steps to reproduce the issue:

  • Please use bullet points and include as much details as possible:
  1. First tried to install the nvidia driver by running NVIDIA-Linux-x86_64-384.130.run. Failed. Error Log:

ERROR: An NVIDIA kernel module 'nvidia-drm' appears to already be loaded in
your kernel. This may be because it is in use (for example, by an X
server, a CUDA program, or the NVIDIA Persistence Daemon), but this
may also happen if your kernel was configured without support for
module unloading. Please be sure to exit any programs that may be
using the GPU(s) before attempting to upgrade your driver. If no
GPU-based programs are running, you know that your kernel supports
module unloading, and you still receive this message, then an error
may have occured that has corrupted an NVIDIA kernel module's usage
count, for which the simplest remedy is to reboot your computer.

  1. Tried the solution suggested here: sudo apt-get update sudo apt-get install nvidia-384

Error Log:

Reading package lists... Done Building dependency tree
Reading state information... Done nvidia-384 is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 99 not upgraded. 3 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y Setting up nvidia-384 (384.183-0ubuntu1) ... update-alternatives: using /usr/lib/nvidia-384/ld.so.conf to provide /etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf (x86_64-linux-gnu_gl_conf) in auto mode update-alternatives: warning: skip creation of /usr/share/grub-gfxpayload-lists/blacklist/10_proprietary-graphics-drivers because associated file /usr/share/nvidia-384/nvidia-384.grub-gfxpayload (of link group x86_64-linux-gnu_gl_conf) doesn't exist update-alternatives: error: error creating symbolic link `/usr/lib/nvidia/alternate-install-present.dpkg-tmp': No such file or directory dpkg: error processing package nvidia-384 (--configure): subprocess installed post-installation script returned error exit status 2 dpkg: dependency problems prevent configuration of libcuda1-384: libcuda1-384 depends on nvidia-384; however: Package nvidia-384 is not configured yet. dpkg: error processing package libcuda1-384 (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of nvidia-opencl-icd-384: nvidia-opencl-icd-384 depends on nvidia-384; however: Package nvidia-384 is not configured yet. dpkg: error processing package nvidia-opencl-icd-384 (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: nvidia-384 libcuda1-384 nvidia-opencl-icd-384 W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ trusty-backports/universe amd64 Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_trusty-backports_universe_binary-amd64_Packages.gz) W: You may want to run apt-get update to correct these problems E: Sub-process /usr/bin/dpkg returned an error code (1)

Can anyone please help me here? Appreciate it!

wzjin2017 avatar Apr 16 '19 03:04 wzjin2017

From Stack Overflow, someone suggested that purging all Nvidia could solve the problem. However, if I delete the Nvidia installed on my host, while installing the driver within the docker, there is an error saying no driver installed(something like that).

wzjin2017 avatar Apr 16 '19 13:04 wzjin2017

@wzjin2017 have you tried using this guide?

natashadsouza avatar Apr 16 '19 17:04 natashadsouza

Hi,wzjin2017 I had the same problem with you, have you solved your problem, and can you give me some advice?

audier0879 avatar Jul 13 '19 09:07 audier0879

Hi,wzjin2017 I had the same problem with you, have you solved your problem, and can you give me some advice?

As @natashadsouza mentioned, the solution is here Installing NVIDIA GPU Driver

wzjin2017 avatar Jul 13 '19 13:07 wzjin2017

Hi,wzjin2017 I had the same problem with you, have you solved your problem, and can you give me some advice?

As @natashadsouza mentioned, the solution is here Installing NVIDIA GPU Driver

this link has 404, can you offer me some solutions?

mynewstart avatar Oct 18 '20 12:10 mynewstart

You can use this link instead: https://github.com/ApolloAuto/apollo/blob/r5.5.0/docs/specs/Software_and_Kernel_Installation_guide.md#installing-nvidia-gpu-driver

this link has 404, can you offer me some solutions?

storypku avatar Oct 19 '20 02:10 storypku