Older versions of Cuda

Is it possible to install older versions of Cuda anymore? I’d like 10.1 with a compatible version of gcc.
I’m doing a computer vision/machine learning project at uni and have to run some code with pytorch that said the version of my compiler doesn’t match that of pytorch(1.1). Another error I got saw that my version of g++ was too new.

I compiled an older version of gcc on Fedora 31, which didn’t work, so I decided to reinstall to Fedora 29 which is supported, but still had problems, now I moved to Ubuntu 18.10 (my original install was clean so didn’t lose much shifting around) but now no matter what I do (tried both Cuda 10.1 deb network and deb local, following the installation guide, with gcc 7 clean installed) and somehow at the end, nvidia-smi shows Cuda 10.2 and has installed gcc 8.4 (8.2 is the last supported version with Cuda 10.1).

Can someone please give me some direction please? It’s very frustrating going round in circles like this.

The easiest way (my opinion, of course) to set up an older version of CUDA is to strictly follow the compatibility matrix given in the linux install guide for the version of CUDA you are trying to use.

https://developer.nvidia.com/cuda-toolkit-archive

This means starting with a compatible (listed) linux distro.

And it’s OK to have a newer driver. Don’t be confused about what nvidia-smi reports:

https://stackoverflow.com/questions/53422407/different-cuda-versions-shown-by-nvcc-and-nvidia-smi

it does not report your installed CUDA toolkit version. It reports something else, and as long as you have a new enough driver, what it reports does not matter.

1 Like

Hi, and thanks for getting back to me. The nvcc/smi was helpful and makes lots of sense.

The First part just doesn’t add up for me though. I moved to two supported distros and followed the detailed instructions every time and still can’t get my end goal, which is an older toolkit version and a driver installed with gcc 7 or older.

I just tried for possibly the 7th time, and although there was an unrelated problem with this installation (please trust me that the other successful installations did this too) I started with nvidia driver 410, gcc 4.8, but after installing Cuda toolkit 10.0 I ended up with driver 440, gcc 8 and Cuda 10.2!!
I can see it decides to upgrade itself during the install and I don’t know enough about Linux yet to figure out why.

I’m supposed to be learning about computer vision and machine learning and the first several days have been trying to get the software working :(

Any help is very much appreciated.

Dumping my last install, hopefully the answer is staring me in the face.

(base) xx:~/Downloads$ sudo dpkg -i cuda-repo-ubuntu1804-10-0-local-10.0.130-410.48_1.0-1_amd64.deb
[sudo] password for xx: 
Selecting previously unselected package cuda-repo-ubuntu1804-10-0-local-10.0.130-410.48.
(Reading database ... 182154 files and directories currently installed.)
Preparing to unpack cuda-repo-ubuntu1804-10-0-local-10.0.130-410.48_1.0-1_amd64.deb ...
Unpacking cuda-repo-ubuntu1804-10-0-local-10.0.130-410.48 (1.0-1) ...
Setting up cuda-repo-ubuntu1804-10-0-local-10.0.130-410.48 (1.0-1) ...

(base) xx:~/Downloads$ sudo apt-key add /var/cuda-repo-10-0-local-10.0.130-410.48/7fa2af80.pub
OK

(base) xx:~/Downloads$ sudo apt-get update

Get:1 file:/var/cuda-repo-10-0-local-10.0.130-410.48  InRelease
Ign:1 file:/var/cuda-repo-10-0-local-10.0.130-410.48  InRelease
Get:2 file:/var/cuda-repo-10-0-local-10.0.130-410.48  Release [574 B]
Get:2 file:/var/cuda-repo-10-0-local-10.0.130-410.48  Release [574 B]
Get:3 file:/var/cuda-repo-10-0-local-10.0.130-410.48  Release.gpg [833 B]      
Get:3 file:/var/cuda-repo-10-0-local-10.0.130-410.48  Release.gpg [833 B]      
Hit:4 http://gb.archive.ubuntu.com/ubuntu cosmic InRelease                     
Hit:5 http://gb.archive.ubuntu.com/ubuntu cosmic-updates InRelease             
Hit:6 http://gb.archive.ubuntu.com/ubuntu cosmic-backports InRelease           
Hit:7 http://security.ubuntu.com/ubuntu cosmic-security InRelease              
Hit:8 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu cosmic InRelease    
Get:9 file:/var/cuda-repo-10-0-local-10.0.130-410.48  Packages [24.4 kB]       
Ign:10 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  InRelease
Hit:11 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  Release
Reading package lists... Done

(base) xx:~/Downloads$ sudo apt-get install cuda

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following package was automatically installed and is no longer required:
  libnvidia-common-410
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
  build-essential cuda-10-2 cuda-command-line-tools-10-2 cuda-compiler-10-2
  cuda-cudart-10-2 cuda-cudart-dev-10-2 cuda-cufft-10-2 cuda-cufft-dev-10-2
  cuda-cuobjdump-10-2 cuda-cupti-10-2 cuda-cupti-dev-10-2 cuda-curand-10-2
  cuda-curand-dev-10-2 cuda-cusolver-10-2 cuda-cusolver-dev-10-2
  cuda-cusparse-10-2 cuda-cusparse-dev-10-2 cuda-demo-suite-10-2
  cuda-documentation-10-2 cuda-driver-dev-10-2 cuda-drivers cuda-gdb-10-2
  cuda-libraries-10-2 cuda-libraries-dev-10-2 cuda-license-10-2
  cuda-memcheck-10-2 cuda-misc-headers-10-2 cuda-npp-10-2 cuda-npp-dev-10-2
  cuda-nsight-10-2 cuda-nsight-compute-10-2 cuda-nsight-systems-10-2
  cuda-nvcc-10-2 cuda-nvdisasm-10-2 cuda-nvgraph-10-2 cuda-nvgraph-dev-10-2
  cuda-nvjpeg-10-2 cuda-nvjpeg-dev-10-2 cuda-nvml-dev-10-2 cuda-nvprof-10-2
  cuda-nvprune-10-2 cuda-nvrtc-10-2 cuda-nvrtc-dev-10-2 cuda-nvtx-10-2
  cuda-nvvp-10-2 cuda-runtime-10-2 cuda-samples-10-2 cuda-sanitizer-api-10-2
  cuda-toolkit-10-2 cuda-tools-10-2 cuda-visual-tools-10-2 freeglut3
  freeglut3-dev g++ g++-8 libcublas-dev libcublas10 libdrm-dev libgl1-mesa-dev
  libgles1 libglu1-mesa-dev libglvnd-core-dev libglvnd-dev libice-dev
  libnvidia-cfg1-440 libnvidia-common-440 libnvidia-compute-440
  libnvidia-decode-440 libnvidia-encode-440 libnvidia-fbc1-440
  libnvidia-gl-440 libnvidia-ifr1-440 libpthread-stubs0-dev libsm-dev
  libstdc++-8-dev libx11-dev libx11-xcb-dev libxau-dev libxcb-dri2-0-dev
  libxcb-dri3-dev libxcb-glx0-dev libxcb-present-dev libxcb-randr0-dev
  libxcb-render0-dev libxcb-shape0-dev libxcb-sync-dev libxcb-xfixes0-dev
  libxcb1-dev libxdamage-dev libxdmcp-dev libxext-dev libxfixes-dev libxi-dev
  libxmu-dev libxmu-headers libxshmfence-dev libxt-dev libxxf86vm-dev
  mesa-common-dev nsight-compute-2019.5.0 nsight-systems-2019.5.2
  nvidia-compute-utils-440 nvidia-dkms-440 nvidia-driver-440
  nvidia-kernel-common-440 nvidia-kernel-source-440 nvidia-modprobe
  nvidia-utils-440 x11proto-core-dev x11proto-damage-dev x11proto-dev
  x11proto-fixes-dev x11proto-input-dev x11proto-xext-dev
  x11proto-xf86vidmode-dev xorg-sgml-doctools xserver-xorg-video-nvidia-440
  xtrans-dev
Suggested packages:
  g++-multilib g++-8-multilib gcc-8-doc libstdc++6-8-dbg libice-doc libsm-doc
  libstdc++-8-doc libx11-doc libxcb-doc libxext-doc libxt-doc
Recommended packages:
  libnvidia-compute-440:i386 libnvidia-decode-440:i386
  libnvidia-encode-440:i386 libnvidia-ifr1-440:i386 libnvidia-fbc1-440:i386
  libnvidia-gl-440:i386
The following packages will be REMOVED
  libnvidia-cfg1-410 libnvidia-compute-410 libnvidia-decode-410
  libnvidia-encode-410 libnvidia-fbc1-410 libnvidia-gl-410 libnvidia-ifr1-410
  nvidia-compute-utils-410 nvidia-dkms-410 nvidia-driver-410
  nvidia-kernel-common-410 nvidia-kernel-source-410 nvidia-utils-410
  xserver-xorg-video-nvidia-410
The following NEW packages will be installed
  build-essential cuda cuda-10-2 cuda-command-line-tools-10-2
  cuda-compiler-10-2 cuda-cudart-10-2 cuda-cudart-dev-10-2 cuda-cufft-10-2
  cuda-cufft-dev-10-2 cuda-cuobjdump-10-2 cuda-cupti-10-2 cuda-cupti-dev-10-2
  cuda-curand-10-2 cuda-curand-dev-10-2 cuda-cusolver-10-2
  cuda-cusolver-dev-10-2 cuda-cusparse-10-2 cuda-cusparse-dev-10-2
  cuda-demo-suite-10-2 cuda-documentation-10-2 cuda-driver-dev-10-2
  cuda-drivers cuda-gdb-10-2 cuda-libraries-10-2 cuda-libraries-dev-10-2
  cuda-license-10-2 cuda-memcheck-10-2 cuda-misc-headers-10-2 cuda-npp-10-2
  cuda-npp-dev-10-2 cuda-nsight-10-2 cuda-nsight-compute-10-2
  cuda-nsight-systems-10-2 cuda-nvcc-10-2 cuda-nvdisasm-10-2 cuda-nvgraph-10-2
  cuda-nvgraph-dev-10-2 cuda-nvjpeg-10-2 cuda-nvjpeg-dev-10-2
  cuda-nvml-dev-10-2 cuda-nvprof-10-2 cuda-nvprune-10-2 cuda-nvrtc-10-2
  cuda-nvrtc-dev-10-2 cuda-nvtx-10-2 cuda-nvvp-10-2 cuda-runtime-10-2
  cuda-samples-10-2 cuda-sanitizer-api-10-2 cuda-toolkit-10-2 cuda-tools-10-2
  cuda-visual-tools-10-2 freeglut3 freeglut3-dev g++ g++-8 libcublas-dev
  libcublas10 libdrm-dev libgl1-mesa-dev libgles1 libglu1-mesa-dev
  libglvnd-core-dev libglvnd-dev libice-dev libnvidia-cfg1-440
  libnvidia-common-440 libnvidia-compute-440 libnvidia-decode-440
  libnvidia-encode-440 libnvidia-fbc1-440 libnvidia-gl-440 libnvidia-ifr1-440
  libpthread-stubs0-dev libsm-dev libstdc++-8-dev libx11-dev libx11-xcb-dev
  libxau-dev libxcb-dri2-0-dev libxcb-dri3-dev libxcb-glx0-dev
  libxcb-present-dev libxcb-randr0-dev libxcb-render0-dev libxcb-shape0-dev
  libxcb-sync-dev libxcb-xfixes0-dev libxcb1-dev libxdamage-dev libxdmcp-dev
  libxext-dev libxfixes-dev libxi-dev libxmu-dev libxmu-headers
  libxshmfence-dev libxt-dev libxxf86vm-dev mesa-common-dev
  nsight-compute-2019.5.0 nsight-systems-2019.5.2 nvidia-compute-utils-440
  nvidia-dkms-440 nvidia-driver-440 nvidia-kernel-common-440
  nvidia-kernel-source-440 nvidia-modprobe nvidia-utils-440 x11proto-core-dev
  x11proto-damage-dev x11proto-dev x11proto-fixes-dev x11proto-input-dev
  x11proto-xext-dev x11proto-xf86vidmode-dev xorg-sgml-doctools
  xserver-xorg-video-nvidia-440 xtrans-dev
0 to upgrade, 119 to newly install, 14 to remove and 0 not to upgrade.
Need to get 0 B/1,872 MB of archives.
After this operation, 4,100 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Extract templates from packages: 100%
(Reading database ... 182245 files and directories currently installed.)
Removing nvidia-driver-410 (410.129-0ubuntu1) ...
Removing xserver-xorg-video-nvidia-410 (410.129-0ubuntu1) ...
Removing libnvidia-cfg1-410:amd64 (410.129-0ubuntu1) ...
Removing libnvidia-encode-410:amd64 (410.129-0ubuntu1) ...
Removing libnvidia-decode-410:amd64 (410.129-0ubuntu1) ...
Removing nvidia-utils-410 (410.129-0ubuntu1) ...
Removing libnvidia-fbc1-410:amd64 (410.129-0ubuntu1) ...
Removing libnvidia-ifr1-410:amd64 (410.129-0ubuntu1) ...
Removing libnvidia-gl-410:amd64 (410.129-0ubuntu1) ...
Removing nvidia-compute-utils-410 (410.129-0ubuntu1) ...
Removing nvidia-dkms-410 (410.129-0ubuntu1) ...
Removing all DKMS Modules
Done.
INFO:Disable nvidia
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
update-initramfs: deferring update (trigger activated)
Removing nvidia-kernel-common-410 (410.129-0ubuntu1) ...
update-initramfs: deferring update (trigger activated)
Removing nvidia-kernel-source-410 (410.129-0ubuntu1) ...
Removing libnvidia-compute-410:amd64 (410.129-0ubuntu1) ...
Selecting previously unselected package libstdc++-8-dev:amd64.
(Reading database ... 181691 files and directories currently installed.)
Preparing to unpack .../000-libstdc++-8-dev_8.3.0-6ubuntu1~18.10.1_amd64.deb ...
Unpacking libstdc++-8-dev:amd64 (8.3.0-6ubuntu1~18.10.1) ...
Selecting previously unselected package g++-8.
Preparing to unpack .../001-g++-8_8.3.0-6ubuntu1~18.10.1_amd64.deb ...
Unpacking g++-8 (8.3.0-6ubuntu1~18.10.1) ...
Selecting previously unselected package g++.
Preparing to unpack .../002-g++_4%3a8.3.0-1ubuntu1.2_amd64.deb ...
Unpacking g++ (4:8.3.0-1ubuntu1.2) ...
Selecting previously unselected package build-essential.
Preparing to unpack .../003-build-essential_12.5ubuntu2_amd64.deb ...
Unpacking build-essential (12.5ubuntu2) ...
Selecting previously unselected package cuda-license-10-2.
Preparing to unpack .../004-cuda-license-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-license-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-misc-headers-10-2.
Preparing to unpack .../005-cuda-misc-headers-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-misc-headers-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-nvcc-10-2.
Preparing to unpack .../006-cuda-nvcc-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-nvcc-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-cuobjdump-10-2.
Preparing to unpack .../007-cuda-cuobjdump-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-cuobjdump-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-nvprune-10-2.
Preparing to unpack .../008-cuda-nvprune-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-nvprune-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-compiler-10-2.
Preparing to unpack .../009-cuda-compiler-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-compiler-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-nvdisasm-10-2.
Preparing to unpack .../010-cuda-nvdisasm-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-nvdisasm-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-gdb-10-2.
Preparing to unpack .../011-cuda-gdb-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-gdb-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-nvprof-10-2.
Preparing to unpack .../012-cuda-nvprof-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-nvprof-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-sanitizer-api-10-2.
Preparing to unpack .../013-cuda-sanitizer-api-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-sanitizer-api-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-memcheck-10-2.
Preparing to unpack .../014-cuda-memcheck-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-memcheck-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-cudart-10-2.
Preparing to unpack .../015-cuda-cudart-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-cudart-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-driver-dev-10-2.
Preparing to unpack .../016-cuda-driver-dev-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-driver-dev-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-cudart-dev-10-2.
Preparing to unpack .../017-cuda-cudart-dev-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-cudart-dev-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-cupti-10-2.
Preparing to unpack .../018-cuda-cupti-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-cupti-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-cupti-dev-10-2.
Preparing to unpack .../019-cuda-cupti-dev-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-cupti-dev-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-nvtx-10-2.
Preparing to unpack .../020-cuda-nvtx-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-nvtx-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-command-line-tools-10-2.
Preparing to unpack .../021-cuda-command-line-tools-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-command-line-tools-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-nsight-10-2.
Preparing to unpack .../022-cuda-nsight-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-nsight-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-nvvp-10-2.
Preparing to unpack .../023-cuda-nvvp-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-nvvp-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-nvrtc-10-2.
Preparing to unpack .../024-cuda-nvrtc-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-nvrtc-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-nvrtc-dev-10-2.
Preparing to unpack .../025-cuda-nvrtc-dev-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-nvrtc-dev-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-cusolver-10-2.
Preparing to unpack .../026-cuda-cusolver-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-cusolver-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-cusolver-dev-10-2.
Preparing to unpack .../027-cuda-cusolver-dev-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-cusolver-dev-10-2 (10.2.89-1) ...
Selecting previously unselected package libcublas10.
Preparing to unpack .../028-libcublas10_10.2.2.89-1_amd64.deb ...
Unpacking libcublas10 (10.2.2.89-1) ...
Selecting previously unselected package libcublas-dev.
Preparing to unpack .../029-libcublas-dev_10.2.2.89-1_amd64.deb ...
Unpacking libcublas-dev (10.2.2.89-1) ...
Selecting previously unselected package cuda-cufft-10-2.
Preparing to unpack .../030-cuda-cufft-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-cufft-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-cufft-dev-10-2.
Preparing to unpack .../031-cuda-cufft-dev-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-cufft-dev-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-curand-10-2.
Preparing to unpack .../032-cuda-curand-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-curand-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-curand-dev-10-2.
Preparing to unpack .../033-cuda-curand-dev-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-curand-dev-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-cusparse-10-2.
Preparing to unpack .../034-cuda-cusparse-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-cusparse-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-cusparse-dev-10-2.
Preparing to unpack .../035-cuda-cusparse-dev-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-cusparse-dev-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-npp-10-2.
Preparing to unpack .../036-cuda-npp-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-npp-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-npp-dev-10-2.
Preparing to unpack .../037-cuda-npp-dev-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-npp-dev-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-nvml-dev-10-2.
Preparing to unpack .../038-cuda-nvml-dev-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-nvml-dev-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-nvjpeg-10-2.
Preparing to unpack .../039-cuda-nvjpeg-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-nvjpeg-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-nvjpeg-dev-10-2.
Preparing to unpack .../040-cuda-nvjpeg-dev-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-nvjpeg-dev-10-2 (10.2.89-1) ...
Selecting previously unselected package nsight-compute-2019.5.0.
Preparing to unpack .../041-nsight-compute-2019.5.0_2019.5.0.14-1_amd64.deb ...
Unpacking nsight-compute-2019.5.0 (2019.5.0.14-1) ...
Selecting previously unselected package cuda-nsight-compute-10-2.
Preparing to unpack .../042-cuda-nsight-compute-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-nsight-compute-10-2 (10.2.89-1) ...
Selecting previously unselected package nsight-systems-2019.5.2.
Preparing to unpack .../043-nsight-systems-2019.5.2_2019.5.2.16-b54ef97_amd64.deb ...
Unpacking nsight-systems-2019.5.2 (2019.5.2.16-b54ef97) ...
Selecting previously unselected package cuda-nsight-systems-10-2.
Preparing to unpack .../044-cuda-nsight-systems-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-nsight-systems-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-nvgraph-10-2.
Preparing to unpack .../045-cuda-nvgraph-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-nvgraph-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-nvgraph-dev-10-2.
Preparing to unpack .../046-cuda-nvgraph-dev-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-nvgraph-dev-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-visual-tools-10-2.
Preparing to unpack .../047-cuda-visual-tools-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-visual-tools-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-tools-10-2.
Preparing to unpack .../048-cuda-tools-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-tools-10-2 (10.2.89-1) ...
Selecting previously unselected package freeglut3:amd64.
Preparing to unpack .../049-freeglut3_2.8.1-3_amd64.deb ...
Unpacking freeglut3:amd64 (2.8.1-3) ...
Selecting previously unselected package xorg-sgml-doctools.
Preparing to unpack .../050-xorg-sgml-doctools_1%3a1.11-1_all.deb ...
Unpacking xorg-sgml-doctools (1:1.11-1) ...
Selecting previously unselected package x11proto-dev.
Preparing to unpack .../051-x11proto-dev_2018.4-4_all.deb ...
Unpacking x11proto-dev (2018.4-4) ...
Selecting previously unselected package x11proto-core-dev.
Preparing to unpack .../052-x11proto-core-dev_2018.4-4_all.deb ...
Unpacking x11proto-core-dev (2018.4-4) ...
Selecting previously unselected package libxau-dev:amd64.
Preparing to unpack .../053-libxau-dev_1%3a1.0.8-1_amd64.deb ...
Unpacking libxau-dev:amd64 (1:1.0.8-1) ...
Selecting previously unselected package libxdmcp-dev:amd64.
Preparing to unpack .../054-libxdmcp-dev_1%3a1.1.2-3_amd64.deb ...
Unpacking libxdmcp-dev:amd64 (1:1.1.2-3) ...
Selecting previously unselected package x11proto-input-dev.
Preparing to unpack .../055-x11proto-input-dev_2018.4-4_all.deb ...
Unpacking x11proto-input-dev (2018.4-4) ...
Selecting previously unselected package xtrans-dev.
Preparing to unpack .../056-xtrans-dev_1.3.5-1_all.deb ...
Unpacking xtrans-dev (1.3.5-1) ...
Selecting previously unselected package libpthread-stubs0-dev:amd64.
Preparing to unpack .../057-libpthread-stubs0-dev_0.3-4_amd64.deb ...
Unpacking libpthread-stubs0-dev:amd64 (0.3-4) ...
Selecting previously unselected package libxcb1-dev:amd64.
Preparing to unpack .../058-libxcb1-dev_1.13.1-1_amd64.deb ...
Unpacking libxcb1-dev:amd64 (1.13.1-1) ...
Selecting previously unselected package libx11-dev:amd64.
Preparing to unpack .../059-libx11-dev_2%3a1.6.7-1_amd64.deb ...
Unpacking libx11-dev:amd64 (2:1.6.7-1) ...
Selecting previously unselected package libdrm-dev:amd64.
Preparing to unpack .../060-libdrm-dev_2.4.95-1_amd64.deb ...
Unpacking libdrm-dev:amd64 (2.4.95-1) ...
Selecting previously unselected package mesa-common-dev:amd64.
Preparing to unpack .../061-mesa-common-dev_18.2.8-0ubuntu0~18.10.2_amd64.deb ...
Unpacking mesa-common-dev:amd64 (18.2.8-0ubuntu0~18.10.2) ...
Selecting previously unselected package libglvnd-core-dev:amd64.
Preparing to unpack .../062-libglvnd-core-dev_1.1.0-1_amd64.deb ...
Unpacking libglvnd-core-dev:amd64 (1.1.0-1) ...
Selecting previously unselected package libgles1:amd64.
Preparing to unpack .../063-libgles1_1.1.0-1_amd64.deb ...
Unpacking libgles1:amd64 (1.1.0-1) ...
Selecting previously unselected package libglvnd-dev:amd64.
Preparing to unpack .../064-libglvnd-dev_1.1.0-1_amd64.deb ...
Unpacking libglvnd-dev:amd64 (1.1.0-1) ...
Selecting previously unselected package libx11-xcb-dev:amd64.
Preparing to unpack .../065-libx11-xcb-dev_2%3a1.6.7-1_amd64.deb ...
Unpacking libx11-xcb-dev:amd64 (2:1.6.7-1) ...
Selecting previously unselected package libxcb-dri3-dev:amd64.
Preparing to unpack .../066-libxcb-dri3-dev_1.13.1-1_amd64.deb ...
Unpacking libxcb-dri3-dev:amd64 (1.13.1-1) ...
Selecting previously unselected package libxcb-render0-dev:amd64.
Preparing to unpack .../067-libxcb-render0-dev_1.13.1-1_amd64.deb ...
Unpacking libxcb-render0-dev:amd64 (1.13.1-1) ...
Selecting previously unselected package libxcb-randr0-dev:amd64.
Preparing to unpack .../068-libxcb-randr0-dev_1.13.1-1_amd64.deb ...
Unpacking libxcb-randr0-dev:amd64 (1.13.1-1) ...
Selecting previously unselected package libxcb-shape0-dev:amd64.
Preparing to unpack .../069-libxcb-shape0-dev_1.13.1-1_amd64.deb ...
Unpacking libxcb-shape0-dev:amd64 (1.13.1-1) ...
Selecting previously unselected package libxcb-xfixes0-dev:amd64.
Preparing to unpack .../070-libxcb-xfixes0-dev_1.13.1-1_amd64.deb ...
Unpacking libxcb-xfixes0-dev:amd64 (1.13.1-1) ...
Selecting previously unselected package libxcb-sync-dev:amd64.
Preparing to unpack .../071-libxcb-sync-dev_1.13.1-1_amd64.deb ...
Unpacking libxcb-sync-dev:amd64 (1.13.1-1) ...
Selecting previously unselected package libxcb-present-dev:amd64.
Preparing to unpack .../072-libxcb-present-dev_1.13.1-1_amd64.deb ...
Unpacking libxcb-present-dev:amd64 (1.13.1-1) ...
Selecting previously unselected package libxshmfence-dev:amd64.
Preparing to unpack .../073-libxshmfence-dev_1.3-1_amd64.deb ...
Unpacking libxshmfence-dev:amd64 (1.3-1) ...
Selecting previously unselected package libxcb-dri2-0-dev:amd64.
Preparing to unpack .../074-libxcb-dri2-0-dev_1.13.1-1_amd64.deb ...
Unpacking libxcb-dri2-0-dev:amd64 (1.13.1-1) ...
Selecting previously unselected package libxcb-glx0-dev:amd64.
Preparing to unpack .../075-libxcb-glx0-dev_1.13.1-1_amd64.deb ...
Unpacking libxcb-glx0-dev:amd64 (1.13.1-1) ...
Selecting previously unselected package x11proto-fixes-dev.
Preparing to unpack .../076-x11proto-fixes-dev_1%3a2018.4-4_all.deb ...
Unpacking x11proto-fixes-dev (1:2018.4-4) ...
Selecting previously unselected package libxfixes-dev:amd64.
Preparing to unpack .../077-libxfixes-dev_1%3a5.0.3-1_amd64.deb ...
Unpacking libxfixes-dev:amd64 (1:5.0.3-1) ...
Selecting previously unselected package x11proto-damage-dev.
Preparing to unpack .../078-x11proto-damage-dev_1%3a2018.4-4_all.deb ...
Unpacking x11proto-damage-dev (1:2018.4-4) ...
Selecting previously unselected package libxdamage-dev:amd64.
Preparing to unpack .../079-libxdamage-dev_1%3a1.1.4-3_amd64.deb ...
Unpacking libxdamage-dev:amd64 (1:1.1.4-3) ...
Selecting previously unselected package x11proto-xext-dev.
Preparing to unpack .../080-x11proto-xext-dev_2018.4-4_all.deb ...
Unpacking x11proto-xext-dev (2018.4-4) ...
Selecting previously unselected package libxext-dev:amd64.
Preparing to unpack .../081-libxext-dev_2%3a1.3.3-1_amd64.deb ...
Unpacking libxext-dev:amd64 (2:1.3.3-1) ...
Selecting previously unselected package x11proto-xf86vidmode-dev.
Preparing to unpack .../082-x11proto-xf86vidmode-dev_2018.4-4_all.deb ...
Unpacking x11proto-xf86vidmode-dev (2018.4-4) ...
Selecting previously unselected package libxxf86vm-dev:amd64.
Preparing to unpack .../083-libxxf86vm-dev_1%3a1.1.4-1_amd64.deb ...
Unpacking libxxf86vm-dev:amd64 (1:1.1.4-1) ...
Selecting previously unselected package libgl1-mesa-dev:amd64.
Preparing to unpack .../084-libgl1-mesa-dev_18.2.8-0ubuntu0~18.10.2_amd64.deb ...
Unpacking libgl1-mesa-dev:amd64 (18.2.8-0ubuntu0~18.10.2) ...
Selecting previously unselected package libglu1-mesa-dev:amd64.
Preparing to unpack .../085-libglu1-mesa-dev_9.0.0-2.1build1_amd64.deb ...
Unpacking libglu1-mesa-dev:amd64 (9.0.0-2.1build1) ...
Selecting previously unselected package libice-dev:amd64.
Preparing to unpack .../086-libice-dev_2%3a1.0.9-2_amd64.deb ...
Unpacking libice-dev:amd64 (2:1.0.9-2) ...
Selecting previously unselected package libsm-dev:amd64.
Preparing to unpack .../087-libsm-dev_2%3a1.2.2-1_amd64.deb ...
Unpacking libsm-dev:amd64 (2:1.2.2-1) ...
Selecting previously unselected package libxt-dev:amd64.
Preparing to unpack .../088-libxt-dev_1%3a1.1.5-1_amd64.deb ...
Unpacking libxt-dev:amd64 (1:1.1.5-1) ...
Selecting previously unselected package freeglut3-dev:amd64.
Preparing to unpack .../089-freeglut3-dev_2.8.1-3_amd64.deb ...
Unpacking freeglut3-dev:amd64 (2.8.1-3) ...
Selecting previously unselected package libxmu-headers.
Preparing to unpack .../090-libxmu-headers_2%3a1.1.2-2_all.deb ...
Unpacking libxmu-headers (2:1.1.2-2) ...
Selecting previously unselected package libxmu-dev:amd64.
Preparing to unpack .../091-libxmu-dev_2%3a1.1.2-2_amd64.deb ...
Unpacking libxmu-dev:amd64 (2:1.1.2-2) ...
Selecting previously unselected package libxi-dev:amd64.
Preparing to unpack .../092-libxi-dev_2%3a1.7.9-1_amd64.deb ...
Unpacking libxi-dev:amd64 (2:1.7.9-1) ...
Selecting previously unselected package cuda-samples-10-2.
Preparing to unpack .../093-cuda-samples-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-samples-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-documentation-10-2.
Preparing to unpack .../094-cuda-documentation-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-documentation-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-libraries-dev-10-2.
Preparing to unpack .../095-cuda-libraries-dev-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-libraries-dev-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-libraries-10-2.
Preparing to unpack .../096-cuda-libraries-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-libraries-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-toolkit-10-2.
Preparing to unpack .../097-cuda-toolkit-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-toolkit-10-2 (10.2.89-1) ...
Selecting previously unselected package libnvidia-common-440.
Preparing to unpack .../098-libnvidia-common-440_440.33.01-0ubuntu1_all.deb ...
Checking for existing driver runfile install
/var/lib/dpkg/tmp.ci/preinst: 6: /var/lib/dpkg/tmp.ci/preinst: [[: not found
Unpacking libnvidia-common-440 (440.33.01-0ubuntu1) ...
Selecting previously unselected package libnvidia-compute-440:amd64.
Preparing to unpack .../099-libnvidia-compute-440_440.33.01-0ubuntu1_amd64.deb ...
Unpacking libnvidia-compute-440:amd64 (440.33.01-0ubuntu1) ...
Selecting previously unselected package libnvidia-decode-440:amd64.
Preparing to unpack .../100-libnvidia-decode-440_440.33.01-0ubuntu1_amd64.deb ...
Unpacking libnvidia-decode-440:amd64 (440.33.01-0ubuntu1) ...
Selecting previously unselected package libnvidia-encode-440:amd64.
Preparing to unpack .../101-libnvidia-encode-440_440.33.01-0ubuntu1_amd64.deb ...
Unpacking libnvidia-encode-440:amd64 (440.33.01-0ubuntu1) ...
Selecting previously unselected package libnvidia-fbc1-440:amd64.
Preparing to unpack .../102-libnvidia-fbc1-440_440.33.01-0ubuntu1_amd64.deb ...
Unpacking libnvidia-fbc1-440:amd64 (440.33.01-0ubuntu1) ...
Selecting previously unselected package libnvidia-gl-440:amd64.
Preparing to unpack .../103-libnvidia-gl-440_440.33.01-0ubuntu1_amd64.deb ...
Unpacking libnvidia-gl-440:amd64 (440.33.01-0ubuntu1) ...
Selecting previously unselected package libnvidia-ifr1-440:amd64.
Preparing to unpack .../104-libnvidia-ifr1-440_440.33.01-0ubuntu1_amd64.deb ...
Unpacking libnvidia-ifr1-440:amd64 (440.33.01-0ubuntu1) ...
Selecting previously unselected package nvidia-compute-utils-440.
Preparing to unpack .../105-nvidia-compute-utils-440_440.33.01-0ubuntu1_amd64.deb ...
Unpacking nvidia-compute-utils-440 (440.33.01-0ubuntu1) ...
Selecting previously unselected package nvidia-kernel-source-440.
Preparing to unpack .../106-nvidia-kernel-source-440_440.33.01-0ubuntu1_amd64.deb ...
Unpacking nvidia-kernel-source-440 (440.33.01-0ubuntu1) ...
Selecting previously unselected package nvidia-kernel-common-440.
Preparing to unpack .../107-nvidia-kernel-common-440_440.33.01-0ubuntu1_amd64.deb ...
Unpacking nvidia-kernel-common-440 (440.33.01-0ubuntu1) ...
Selecting previously unselected package nvidia-dkms-440.
Preparing to unpack .../108-nvidia-dkms-440_440.33.01-0ubuntu1_amd64.deb ...
Unpacking nvidia-dkms-440 (440.33.01-0ubuntu1) ...
Selecting previously unselected package nvidia-utils-440.
Preparing to unpack .../109-nvidia-utils-440_440.33.01-0ubuntu1_amd64.deb ...
Unpacking nvidia-utils-440 (440.33.01-0ubuntu1) ...
Selecting previously unselected package libnvidia-cfg1-440:amd64.
Preparing to unpack .../110-libnvidia-cfg1-440_440.33.01-0ubuntu1_amd64.deb ...
Unpacking libnvidia-cfg1-440:amd64 (440.33.01-0ubuntu1) ...
Selecting previously unselected package xserver-xorg-video-nvidia-440.
Preparing to unpack .../111-xserver-xorg-video-nvidia-440_440.33.01-0ubuntu1_amd64.deb ...
Unpacking xserver-xorg-video-nvidia-440 (440.33.01-0ubuntu1) ...
Selecting previously unselected package nvidia-driver-440.
Preparing to unpack .../112-nvidia-driver-440_440.33.01-0ubuntu1_amd64.deb ...
Unpacking nvidia-driver-440 (440.33.01-0ubuntu1) ...
Selecting previously unselected package nvidia-modprobe.
Preparing to unpack .../113-nvidia-modprobe_440.33.01-0ubuntu1_amd64.deb ...
Unpacking nvidia-modprobe (440.33.01-0ubuntu1) ...
Selecting previously unselected package cuda-drivers.
Preparing to unpack .../114-cuda-drivers_440.33.01-1_amd64.deb ...
Unpacking cuda-drivers (440.33.01-1) ...
Selecting previously unselected package cuda-runtime-10-2.
Preparing to unpack .../115-cuda-runtime-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-runtime-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-demo-suite-10-2.
Preparing to unpack .../116-cuda-demo-suite-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-demo-suite-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-10-2.
Preparing to unpack .../117-cuda-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda.
Preparing to unpack .../118-cuda_10.2.89-1_amd64.deb ...
Unpacking cuda (10.2.89-1) ...
Setting up freeglut3:amd64 (2.8.1-3) ...
Setting up libstdc++-8-dev:amd64 (8.3.0-6ubuntu1~18.10.1) ...
Setting up libgles1:amd64 (1.1.0-1) ...
Setting up libnvidia-common-440 (440.33.01-0ubuntu1) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Setting up libnvidia-fbc1-440:amd64 (440.33.01-0ubuntu1) ...
Setting up libxshmfence-dev:amd64 (1.3-1) ...
Processing triggers for desktop-file-utils (0.23-3ubuntu3) ...
Setting up libpthread-stubs0-dev:amd64 (0.3-4) ...
Setting up libdrm-dev:amd64 (2.4.95-1) ...
Setting up xorg-sgml-doctools (1:1.11-1) ...
Setting up cuda-license-10-2 (10.2.89-1) ...
*** LICENSE AGREEMENT ***
By using this software you agree to fully comply with the terms and 
conditions of the EULA (End User License Agreement). The EULA is located
at /usr/local/cuda-10.2/doc/EULA.txt. The EULA can also be found at
http://docs.nvidia.com/cuda/eula/index.html. If you do not agree to the
terms and conditions of the EULA, do not use the software.

Setting up cuda-nvgraph-10-2 (10.2.89-1) ...
Setting up nsight-systems-2019.5.2 (2019.5.2.16-b54ef97) ...
update-alternatives: using /opt/nvidia/nsight-systems/2019.5.2/target-linux-x64/nsys to provide /usr/local/bin/nsys (nsys) in auto mode
update-alternatives: using /opt/nvidia/nsight-systems/2019.5.2/host-linux-x64/nsight-sys to provide /usr/local/bin/nsight-sys (nsight-sys) in auto mode
update-alternatives: using /opt/nvidia/nsight-systems/2019.5.2/host-linux-x64/nsys-exporter to provide /usr/local/bin/nsys-exporter (nsys-exporter) in auto mode
Processing triggers for initramfs-tools (0.131ubuntu15.2) ...
update-initramfs: Generating /boot/initrd.img-4.18.0-25-generic
I: The initramfs will attempt to resume from /dev/dm-1
I: (/dev/mapper/ubuntu--vg-swap_1)
I: Set the RESUME variable to override this.
Setting up libnvidia-compute-440:amd64 (440.33.01-0ubuntu1) ...
Setting up cuda-nvprune-10-2 (10.2.89-1) ...
Setting up cuda-nvrtc-10-2 (10.2.89-1) ...
Setting up cuda-nvtx-10-2 (10.2.89-1) ...
Setting up x11proto-dev (2018.4-4) ...
Setting up nvidia-utils-440 (440.33.01-0ubuntu1) ...
Setting up g++-8 (8.3.0-6ubuntu1~18.10.1) ...
Setting up nvidia-kernel-common-440 (440.33.01-0ubuntu1) ...
update-initramfs: deferring update (trigger activated)
Setting up x11proto-damage-dev (1:2018.4-4) ...
Setting up libnvidia-cfg1-440:amd64 (440.33.01-0ubuntu1) ...
Setting up xtrans-dev (1.3.5-1) ...
Setting up cuda-nvjpeg-10-2 (10.2.89-1) ...
Setting up x11proto-xext-dev (2018.4-4) ...
Setting up libcublas10 (10.2.2.89-1) ...
Setting up libcublas-dev (10.2.2.89-1) ...
Setting up libxdmcp-dev:amd64 (1:1.1.2-3) ...
Processing triggers for libc-bin (2.28-0ubuntu1) ...
Setting up libice-dev:amd64 (2:1.0.9-2) ...
Setting up cuda-cufft-10-2 (10.2.89-1) ...
Setting up nvidia-modprobe (440.33.01-0ubuntu1) ...
Setting up cuda-cusparse-10-2 (10.2.89-1) ...
Setting up nsight-compute-2019.5.0 (2019.5.0.14-1) ...
Setting up cuda-cuobjdump-10-2 (10.2.89-1) ...
Processing triggers for man-db (2.8.4-2) ...
Setting up g++ (4:8.3.0-1ubuntu1.2) ...
update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode
Setting up libnvidia-decode-440:amd64 (440.33.01-0ubuntu1) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu2) ...
Setting up cuda-sanitizer-api-10-2 (10.2.89-1) ...
Setting up nvidia-compute-utils-440 (440.33.01-0ubuntu1) ...
Warning: The home dir /nonexistent you specified can't be accessed: No such file or directory
Adding system user `nvidia-persistenced' (UID 124) ...
Adding new group `nvidia-persistenced' (GID 130) ...
Adding new user `nvidia-persistenced' (UID 124) with group `nvidia-persistenced' ...
Not creating home directory `/nonexistent'.
Setting up cuda-nvjpeg-dev-10-2 (10.2.89-1) ...
Setting up cuda-cusolver-10-2 (10.2.89-1) ...
Setting up libnvidia-encode-440:amd64 (440.33.01-0ubuntu1) ...
Setting up cuda-misc-headers-10-2 (10.2.89-1) ...
Setting up libglvnd-core-dev:amd64 (1.1.0-1) ...
Setting up cuda-nvvp-10-2 (10.2.89-1) ...
Setting up cuda-curand-10-2 (10.2.89-1) ...
Setting up x11proto-input-dev (2018.4-4) ...
Setting up cuda-cudart-10-2 (10.2.89-1) ...
Setting up nvidia-kernel-source-440 (440.33.01-0ubuntu1) ...
Setting up xserver-xorg-video-nvidia-440 (440.33.01-0ubuntu1) ...
Setting up cuda-npp-10-2 (10.2.89-1) ...
Setting up libnvidia-gl-440:amd64 (440.33.01-0ubuntu1) ...
Setting up cuda-cufft-dev-10-2 (10.2.89-1) ...
Setting up cuda-libraries-10-2 (10.2.89-1) ...
Setting up libsm-dev:amd64 (2:1.2.2-1) ...
Setting up cuda-memcheck-10-2 (10.2.89-1) ...
Setting up x11proto-core-dev (2018.4-4) ...
Setting up cuda-nvrtc-dev-10-2 (10.2.89-1) ...
Setting up cuda-driver-dev-10-2 (10.2.89-1) ...
Setting up cuda-npp-dev-10-2 (10.2.89-1) ...
Setting up cuda-nsight-systems-10-2 (10.2.89-1) ...
Setting up cuda-nsight-10-2 (10.2.89-1) ...
Setting up cuda-nvdisasm-10-2 (10.2.89-1) ...
Setting up cuda-nvml-dev-10-2 (10.2.89-1) ...
Setting up build-essential (12.5ubuntu2) ...
Setting up cuda-nvgraph-dev-10-2 (10.2.89-1) ...
Setting up cuda-nvcc-10-2 (10.2.89-1) ...
Setting up cuda-nvprof-10-2 (10.2.89-1) ...
Setting up x11proto-fixes-dev (1:2018.4-4) ...
Setting up cuda-cusparse-dev-10-2 (10.2.89-1) ...
Setting up cuda-compiler-10-2 (10.2.89-1) ...
Setting up x11proto-xf86vidmode-dev (2018.4-4) ...
Setting up libxau-dev:amd64 (1:1.0.8-1) ...
Setting up libglvnd-dev:amd64 (1.1.0-1) ...
Setting up cuda-curand-dev-10-2 (10.2.89-1) ...
Setting up nvidia-dkms-440 (440.33.01-0ubuntu1) ...
update-initramfs: deferring update (trigger activated)

A modprobe blacklist file has been created at /etc/modprobe.d to prevent Nouveau
from loading. This can be reverted by deleting the following file:
/etc/modprobe.d/nvidia-graphics-drivers.conf

A new initrd image has also been created. To revert, please regenerate your
initrd by running the following command after deleting the modprobe.d file:
`/usr/sbin/initramfs -u`

*****************************************************************************
*** Reboot your computer and verify that the NVIDIA graphics driver can   ***
*** be loaded.                                                            ***
*****************************************************************************

INFO:Enable nvidia
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
Loading new nvidia-440.33.01 DKMS files...
Building for 4.18.0-25-generic
Building for architecture x86_64
Building initial module for 4.18.0-25-generic
Error! Bad return status for module build on kernel: 4.18.0-25-generic (x86_64)
Consult /var/lib/dkms/nvidia/440.33.01/build/make.log for more information.
Setting up cuda-cusolver-dev-10-2 (10.2.89-1) ...
Setting up cuda-nsight-compute-10-2 (10.2.89-1) ...
Setting up libnvidia-ifr1-440:amd64 (440.33.01-0ubuntu1) ...
Setting up libxcb1-dev:amd64 (1.13.1-1) ...
Setting up libxcb-glx0-dev:amd64 (1.13.1-1) ...
Setting up cuda-gdb-10-2 (10.2.89-1) ...
Setting up libx11-dev:amd64 (2:1.6.7-1) ...
Setting up libxxf86vm-dev:amd64 (1:1.1.4-1) ...
Setting up libxfixes-dev:amd64 (1:5.0.3-1) ...
Setting up libxcb-sync-dev:amd64 (1.13.1-1) ...
Setting up libx11-xcb-dev:amd64 (2:1.6.7-1) ...
Setting up libxt-dev:amd64 (1:1.1.5-1) ...
Setting up cuda-cudart-dev-10-2 (10.2.89-1) ...
Setting up mesa-common-dev:amd64 (18.2.8-0ubuntu0~18.10.2) ...
Setting up libxmu-headers (2:1.1.2-2) ...
Setting up libxdamage-dev:amd64 (1:1.1.4-3) ...
Setting up cuda-libraries-dev-10-2 (10.2.89-1) ...
Setting up libxcb-dri2-0-dev:amd64 (1.13.1-1) ...
Setting up libxcb-render0-dev:amd64 (1.13.1-1) ...
Setting up libxcb-dri3-dev:amd64 (1.13.1-1) ...
Setting up libxext-dev:amd64 (2:1.3.3-1) ...
Setting up nvidia-driver-440 (440.33.01-0ubuntu1) ...
Setting up libxcb-shape0-dev:amd64 (1.13.1-1) ...
Setting up cuda-visual-tools-10-2 (10.2.89-1) ...
Setting up libxi-dev:amd64 (2:1.7.9-1) ...
Setting up cuda-cupti-10-2 (10.2.89-1) ...
Setting up libxcb-randr0-dev:amd64 (1.13.1-1) ...
Setting up libxmu-dev:amd64 (2:1.1.2-2) ...
Setting up libxcb-xfixes0-dev:amd64 (1.13.1-1) ...
Setting up cuda-drivers (440.33.01-1) ...
Setting up cuda-cupti-dev-10-2 (10.2.89-1) ...
Setting up libxcb-present-dev:amd64 (1.13.1-1) ...
Setting up cuda-command-line-tools-10-2 (10.2.89-1) ...
Setting up cuda-runtime-10-2 (10.2.89-1) ...
Setting up libgl1-mesa-dev:amd64 (18.2.8-0ubuntu0~18.10.2) ...
Setting up cuda-tools-10-2 (10.2.89-1) ...
Setting up cuda-demo-suite-10-2 (10.2.89-1) ...
Setting up libglu1-mesa-dev:amd64 (9.0.0-2.1build1) ...
Setting up freeglut3-dev:amd64 (2.8.1-3) ...
Setting up cuda-samples-10-2 (10.2.89-1) ...
Setting up cuda-documentation-10-2 (10.2.89-1) ...
Setting up cuda-toolkit-10-2 (10.2.89-1) ...
Setting up cuda-10-2 (10.2.89-1) ...
Setting up cuda (10.2.89-1) ...
Processing triggers for initramfs-tools (0.131ubuntu15.2) ...
update-initramfs: Generating /boot/initrd.img-4.18.0-25-generic
I: The initramfs will attempt to resume from /dev/dm-1
I: (/dev/mapper/ubuntu--vg-swap_1)
I: Set the RESUME variable to override this.
Processing triggers for libc-bin (2.28-0ubuntu1) ...

(base) xx:~/Downloads$

If you do this:

sudo apt-get install cuda

it will install the latest version of CUDA (which happens to be 10.2 at the moment).

It doesn’t really matter which version of the cuda package you downloaded.

If you want an older version of cuda (using 10.0 as example) you must do:

sudo apt-get install cuda-toolkit-10-0

Don’t worry about the 440 driver. That will work fine with cuda 10.0.

Just run the above command.

The above comments apply to the package manager install method, which is what you are using.

If you use the runfile install method, then whichever runfile installer you download is the CUDA version you will install.

2 Likes

Thanks again for the help, only just got around to it this morning, things are starting to be a bit clearer.

However :D

$ sudo apt-get install cuda-toolkit-10-0
[sudo] password for Xx: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package cuda-toolkit-10-0

I even tried swapping for “10.0”

sudo apt-get install cuda-toolkit-10.0
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package cuda-toolkit-10.0
E: Couldn't find any package by glob 'cuda-toolkit-10.0'
E: Couldn't find any package by regex 'cuda-toolkit-10.0'

I’m now on 18.04 rather than 18.10, but feel that wouldn’t change much?

I’m going to give the runfile a go tomorrow.

OK try this.

Follow the instructions here exactly:

https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&target_distro=Ubuntu&target_version=1804&target_type=deblocal

Don’t change anything except the last line, and at the last line do this instead:

sudo apt-get install cuda-toolkit-10-0

If that doesn’t work you may need to switch to 18.04. 18.10 isn’t a supported version of Linux for CUDA.

I really appreciate the help, but still no good. Same error (dump below), and I’m already on 18.04, I did a fresh install down the other day so my failed attempt above was on 18.04 too. I’ll see if I can dig around to find out why the package can’t be found.

addition:
I checked in Software and Updates, and the
“file:/var/cuda-repo-10-2-local-10.2.89-440.33.01/” is present and ticked in the Other Software tab.

(base) Xx:~$ nvidia-smi
Thu Dec  5 23:52:39 2019       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 435.21       Driver Version: 435.21       CUDA Version: 10.1     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 105...  Off  | 00000000:01:00.0  On |                  N/A |
| 30%   32C    P0    N/A /  75W |    364MiB /  4038MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0      1424      G   /usr/lib/xorg/Xorg                            32MiB |
|    0      1770      G   /usr/bin/gnome-shell                          48MiB |
|    0      2278      G   /usr/lib/xorg/Xorg                           184MiB |
|    0      2445      G   /usr/bin/gnome-shell                          96MiB |
+-----------------------------------------------------------------------------+

(base) Xx:~$ gcc --version
gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

(base) Xx:~$ wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-ubuntu1804.pin
--2019-12-05 23:55:44--  https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-ubuntu1804.pin
Resolving developer.download.nvidia.com (developer.download.nvidia.com)... 192.229.221.58, 2606:2800:233:ef6:15dd:1ece:1d50:1e1
Connecting to developer.download.nvidia.com (developer.download.nvidia.com)|192.229.221.58|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 56 [application/octet-stream]
Saving to: ‘cuda-ubuntu1804.pin’

cuda-ubuntu1804.pin 100%[===================>]      56  --.-KB/s    in 0s      

2019-12-05 23:55:44 (2.13 MB/s) - ‘cuda-ubuntu1804.pin’ saved [56/56]

(base) Xx:~$ sudo mv cuda-ubuntu1804.pin /etc/apt/preferences.d/cuda-repository-pin-600
[sudo] password for Xx: 
(base) Xx:~$ wget http://developer.download.nvidia.com/compute/cuda/10.2/Prod/local_installers/cuda-repo-ubuntu1804-10-2-local-10.2.89-440.33.01_1.0-1_amd64.deb
--2019-12-05 23:56:28--  http://developer.download.nvidia.com/compute/cuda/10.2/Prod/local_installers/cuda-repo-ubuntu1804-10-2-local-10.2.89-440.33.01_1.0-1_amd64.deb
Resolving developer.download.nvidia.com (developer.download.nvidia.com)... 192.229.221.58, 2606:2800:233:ef6:15dd:1ece:1d50:1e1
Connecting to developer.download.nvidia.com (developer.download.nvidia.com)|192.229.221.58|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1896270068 (1.8G) [application/x-deb]
Saving to: ‘cuda-repo-ubuntu1804-10-2-local-10.2.89-440.33.01_1.0-1_amd64.deb’

cuda-repo-ubuntu180 100%[===================>]   1.77G   112MB/s    in 16s     

2019-12-05 23:56:44 (112 MB/s) - ‘cuda-repo-ubuntu1804-10-2-local-10.2.89-440.33.01_1.0-1_amd64.deb’ saved [1896270068/1896270068]

(base) Xx:~$ sudo dpkg -i cuda-repo-ubuntu1804-10-2-local-10.2.89-440.33.01_1.0-1_amd64.deb
Selecting previously unselected package cuda-repo-ubuntu1804-10-2-local-10.2.89-440.33.01.
(Reading database ... 192229 files and directories currently installed.)
Preparing to unpack cuda-repo-ubuntu1804-10-2-local-10.2.89-440.33.01_1.0-1_amd64.deb ...
Unpacking cuda-repo-ubuntu1804-10-2-local-10.2.89-440.33.01 (1.0-1) ...
Setting up cuda-repo-ubuntu1804-10-2-local-10.2.89-440.33.01 (1.0-1) ...

The public CUDA GPG key does not appear to be installed.
To install the key, run this command:
sudo apt-key add /var/cuda-repo-10-2-local-10.2.89-440.33.01/7fa2af80.pub

(base) Xx:~$ sudo apt-key add /var/cuda-repo-10-2-local-10.2.89-440.33.01/7fa2af80.pub
OK

(base) Xx:~$ sudo apt-get update
Get:1 file:/var/cuda-repo-10-2-local-10.2.89-440.33.01  InRelease
Ign:1 file:/var/cuda-repo-10-2-local-10.2.89-440.33.01  InRelease
Get:2 file:/var/cuda-repo-10-2-local-10.2.89-440.33.01  Release [574 B]
Get:2 file:/var/cuda-repo-10-2-local-10.2.89-440.33.01  Release [574 B]
Get:3 file:/var/cuda-repo-10-2-local-10.2.89-440.33.01  Release.gpg [833 B]    
Get:3 file:/var/cuda-repo-10-2-local-10.2.89-440.33.01  Release.gpg [833 B]    
Hit:4 http://gb.archive.ubuntu.com/ubuntu bionic InRelease                     
Hit:5 http://gb.archive.ubuntu.com/ubuntu bionic-updates InRelease             
Hit:6 http://security.ubuntu.com/ubuntu bionic-security InRelease        
Hit:7 http://gb.archive.ubuntu.com/ubuntu bionic-backports InRelease     
Get:8 file:/var/cuda-repo-10-2-local-10.2.89-440.33.01  Packages [23.8 kB]
Reading package lists... Done                           

(base) Xx:~$ sudo apt-get install cuda-toolkit-10-0
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package cuda-toolkit-10-0

(base)Xx:~$ lsb_release -a 
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 18.04.3 LTS
Release:	18.04
Codename:	bionic

(base) Xx:~$

Sorry, it didn’t work for me either, my bad. I goofed.

If we switch the instruction to deb network, it should work, I just tried it.

So try this. Follow the instructions here:

https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&target_distro=Ubuntu&target_version=1804&target_type=debnetwork

Don’t change anything except the last line. Change the last line to:

sudo apt-get install cuda-toolkit-10-0

Sorry about the churn.

(This method requires an internet connection to the machine in question)

1 Like