I am trying to install NVIDIA CUDA Toolkit for Ubuntu 18.04 LTS by following these instructions on the NVIDIA website. I want to use the Toolkit to build Blender with CUDA (and maybe Optix) support. I have two questions:
First, is it a problem that my Linux Kernel is newer than the listed version? I’m running 5.3.0-46-generic.
Second, and more important:
When I run the .run installer, it tells me that there is a previous package manager installation of the driver. I don’t recall ever installing CUDA (I might have), and I don’t have a package by that name. Here are all of the NVIDIA packages I have installed:
ii libnvidia-cfg1-430:amd64 430.50-0ubuntu0.18.04.2 amd64 NVIDIA binary OpenGL/GLX configuration library
ii libnvidia-common-430 430.50-0ubuntu0.18.04.2 all Shared files used by the NVIDIA libraries
rc libnvidia-compute-390:amd64 390.116-0ubuntu0.18.04.1 amd64 NVIDIA libcompute package
rc libnvidia-compute-390:i386 390.116-0ubuntu0.18.04.1 i386 NVIDIA libcompute package
ii libnvidia-compute-430:amd64 430.50-0ubuntu0.18.04.2 amd64 NVIDIA libcompute package
ii libnvidia-compute-430:i386 430.50-0ubuntu0.18.04.2 i386 NVIDIA libcompute package
ii libnvidia-decode-430:amd64 430.50-0ubuntu0.18.04.2 amd64 NVIDIA Video Decoding runtime libraries
ii libnvidia-decode-430:i386 430.50-0ubuntu0.18.04.2 i386 NVIDIA Video Decoding runtime libraries
ii libnvidia-encode-430:amd64 430.50-0ubuntu0.18.04.2 amd64 NVENC Video Encoding runtime library
ii libnvidia-encode-430:i386 430.50-0ubuntu0.18.04.2 i386 NVENC Video Encoding runtime library
ii libnvidia-fbc1-430:amd64 430.50-0ubuntu0.18.04.2 amd64 NVIDIA OpenGL-based Framebuffer Capture runtime library
ii libnvidia-fbc1-430:i386 430.50-0ubuntu0.18.04.2 i386 NVIDIA OpenGL-based Framebuffer Capture runtime library
ii libnvidia-gl-430:amd64 430.50-0ubuntu0.18.04.2 amd64 NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii libnvidia-gl-430:i386 430.50-0ubuntu0.18.04.2 i386 NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii libnvidia-ifr1-430:amd64 430.50-0ubuntu0.18.04.2 amd64 NVIDIA OpenGL-based Inband Frame Readback runtime library
ii libnvidia-ifr1-430:i386 430.50-0ubuntu0.18.04.2 i386 NVIDIA OpenGL-based Inband Frame Readback runtime library
rc nvidia-compute-utils-390 390.116-0ubuntu0.18.04.1 amd64 NVIDIA compute utilities
ii nvidia-compute-utils-430 430.50-0ubuntu0.18.04.2 amd64 NVIDIA compute utilities
rc nvidia-dkms-390 390.116-0ubuntu0.18.04.1 amd64 NVIDIA DKMS package
ii nvidia-dkms-430 430.50-0ubuntu0.18.04.2 amd64 NVIDIA DKMS package
ii nvidia-driver-430 430.50-0ubuntu0.18.04.2 amd64 NVIDIA driver metapackage
rc nvidia-kernel-common-390 390.116-0ubuntu0.18.04.1 amd64 Shared files used with the kernel module
ii nvidia-kernel-common-430 430.50-0ubuntu0.18.04.2 amd64 Shared files used with the kernel module
ii nvidia-kernel-source-430 430.50-0ubuntu0.18.04.2 amd64 NVIDIA kernel source package
ii nvidia-prime 0.8.8.2 all Tools to enable NVIDIA's Prime
ii nvidia-settings 390.77-0ubuntu0.18.04.1 amd64 Tool for configuring the NVIDIA graphics driver
ii nvidia-utils-430 430.50-0ubuntu0.18.04.2 amd64 NVIDIA driver support binaries
ii xserver-xorg-video-nvidia-430 430.50-0ubuntu0.18.04.2 amd64 NVIDIA binary Xorg driver
Which package should I uninstall? The instructions don’t say the name of the package to purge.
Just in case, I also attempted the uninstall instructions for the .run file installation, but the result was “File not found”, so I suppose I’ve never installed it with the run file, either.
Finally, I’m confident that CUDA works on my system, because Blender’s official build will render correctly from CUDA. I’m using the NVIDIA driver for my GtX 1080:
Is this what I need to remove?
Thanks.