shmpwk / dotfiles

1 stars 0 forks source link

install_cuda.sh expects to install cuda 10-2 but install cuda-11, 11-5 #1

Closed shmpwk closed 2 years ago

shmpwk commented 3 years ago

Execute below to install cuda 10-2. Reference: wada-san install script in dotfile repo

#!/bin/bash

cd $(mktemp -d)

if [ "$(lsb_release -sc)" = "bionic" ]; then
  wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-ubuntu1804.pin
  sudo mv cuda-ubuntu1804.pin /etc/apt/preferences.d/cuda-repository-pin-600
  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
  sudo dpkg -i cuda-repo-ubuntu1804-10-2-local-10.2.89-440.33.01_1.0-1_amd64.deb
  sudo apt-key add /var/cuda-repo-10-2-local-10.2.89-440.33.01/7fa2af80.pub
  sudo apt-get update
  sudo apt-get -y install cuda
elif [ "$(lsb_release -sc)" = "xenial" ]; then
  wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-ubuntu1604.pin
  sudo mv cuda-ubuntu1604.pin /etc/apt/preferences.d/cuda-repository-pin-600
  wget http://developer.download.nvidia.com/compute/cuda/10.2/Prod/local_installers/cuda-repo-ubuntu1604-10-2-local-10.2.89-440.33.01_1.0-1_amd64.deb
  sudo dpkg -i cuda-repo-ubuntu1604-10-2-local-10.2.89-440.33.01_1.0-1_amd64.deb
  sudo apt-key add /var/cuda-repo-10-2-local-10.2.89-440.33.01/7fa2af80.pub
  sudo apt-get update
  sudo apt-get -y install cuda
else
  echo "[$0] Unsupported OS: $(uname), $(lsb_release -sc)"
  exit 1
fi

cd -

Here is the result.

$ bash install_cuda.sh 
--2021-10-23 17:12:44--  https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-ubuntu1804.pin
Resolving developer.download.nvidia.com (developer.download.nvidia.com)... 152.199.39.144
Connecting to developer.download.nvidia.com (developer.download.nvidia.com)|152.199.39.144|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 190 [application/octet-stream]
Saving to: ‘cuda-ubuntu1804.pin’

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

2021-10-23 17:12:44 (21.8 MB/s) - ‘cuda-ubuntu1804.pin’ saved [190/190]

[sudo] password for shmpwk: 
--2021-10-23 17:12:47--  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)... 152.199.39.144
Connecting to developer.download.nvidia.com (developer.download.nvidia.com)|152.199.39.144|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://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 [following]
--2021-10-23 17:12:47--  https://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
Connecting to developer.download.nvidia.com (developer.download.nvidia.com)|152.199.39.144|:443... 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-ubuntu1804-10-2-local-10.2.89-440.33.01_1. 100%[=====================================================================================================================>]   1.77G   105MB/s    in 17s     

2021-10-23 17:13:04 (106 MB/s) - ‘cuda-repo-ubuntu1804-10-2-local-10.2.89-440.33.01_1.0-1_amd64.deb’ saved [1896270068/1896270068]

Selecting previously unselected package cuda-repo-ubuntu1804-10-2-local-10.2.89-440.33.01.
(Reading database ... 343361 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) ...
OK
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]
Hit:3 http://jp.archive.ubuntu.com/ubuntu bionic InRelease
Get:4 http://jp.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:5 https://download.docker.com/linux/ubuntu bionic InRelease [64.4 kB]
Hit:6 https://nvidia.github.io/libnvidia-container/stable/ubuntu18.04/amd64  InRelease
Get:7 https://nvidia.github.io/nvidia-container-runtime/stable/ubuntu18.04/amd64  InRelease [1,481 B]
Hit:8 https://nvidia.github.io/nvidia-docker/ubuntu18.04/amd64  InRelease
Hit:9 http://archive.ubuntulinux.jp/ubuntu bionic InRelease
Hit:10 http://archive.ubuntulinux.jp/ubuntu-ja-non-free bionic InRelease
Get:2 file:/var/cuda-repo-10-2-local-10.2.89-440.33.01  Release [574 B]                                                                                                                                           
Get:11 http://jp.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]                                                                                                                                   
Get:12 file:/var/cuda-repo-10-2-local-10.2.89-440.33.01  Release.gpg [833 B]                                                                                                                                      
Get:12 file:/var/cuda-repo-10-2-local-10.2.89-440.33.01  Release.gpg [833 B]                                                                                                                                      
Ign:13 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  InRelease                                                                                                                       
Get:14 http://packages.microsoft.com/repos/code stable InRelease [10.4 kB]                                                                                                                                        
Hit:15 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  Release                                                                                                                         
Hit:16 https://repo.steampowered.com/steam stable InRelease                                                                                                                                                       
Get:17 https://desktop-download.mendeley.com/download/apt stable InRelease [2,456 B]                                                                                                                              
Hit:18 https://packages.cloud.google.com/apt coral-edgetpu-stable InRelease                                                                                                                                       
Hit:19 http://dl.google.com/linux/chrome/deb stable InRelease                                                                                                                                                     
Hit:20 https://storage.googleapis.com/bazel-apt stable InRelease                                                                                                                                                  
Get:21 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]                                                                                                                                      
Hit:22 http://ppa.launchpad.net/alexlarsson/flatpak/ubuntu bionic InRelease                                                                                                                                       
Hit:23 http://repository.spotify.com stable InRelease                                                                                                                                                             
Hit:24 https://linux.teamviewer.com/deb stable InRelease                                                                                                                                                       
Get:26 http://packages.ros.org/ros-testing/ubuntu bionic InRelease [4,680 B]                                                                                                                                   
Hit:27 http://ppa.launchpad.net/aziotsdklinux/ppa-azureiot/ubuntu bionic InRelease                                                                                                                
Hit:25 https://packagecloud.io/slacktechnologies/slack/debian jessie InRelease
Hit:28 http://ppa.launchpad.net/cpick/hub/ubuntu bionic InRelease
Hit:29 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu bionic InRelease 
Hit:30 http://ppa.launchpad.net/jonathonf/vim/ubuntu bionic InRelease        
Hit:31 http://ppa.launchpad.net/stebbins/handbrake-releases/ubuntu bionic InRelease
Get:32 http://jp.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [2,277 kB]                                                                                                                          
Get:33 http://jp.archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages [1,370 kB]
Get:34 http://jp.archive.ubuntu.com/ubuntu bionic-updates/main amd64 DEP-11 Metadata [293 kB]
Get:35 http://jp.archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [513 kB]  
Get:36 http://jp.archive.ubuntu.com/ubuntu bionic-updates/restricted i386 Packages [28.7 kB]
Get:37 http://jp.archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages [1,582 kB]
Get:38 http://jp.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [1,759 kB]
Get:39 http://jp.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 DEP-11 Metadata [300 kB]
Get:40 http://jp.archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 DEP-11 Metadata [2,464 B]
Get:41 http://jp.archive.ubuntu.com/ubuntu bionic-backports/universe amd64 DEP-11 Metadata [9,272 B]                                                                                                              
Get:42 file:/var/cuda-repo-10-2-local-10.2.89-440.33.01  Packages [23.8 kB]                                                                                                                                       
Get:44 http://packages.microsoft.com/repos/code stable/main amd64 Packages [51.6 kB]                                                                                                                              
Get:45 http://packages.microsoft.com/repos/code stable/main arm64 Packages [52.4 kB]                                                                                                                              
Get:46 http://packages.microsoft.com/repos/code stable/main armhf Packages [52.2 kB]                                                                                                                              
Get:47 http://packages.ros.org/ros-testing/ubuntu bionic/main amd64 Packages [775 kB]                                                                                                                             
Get:48 http://security.ubuntu.com/ubuntu bionic-security/main i386 Packages [1,064 kB]
Get:49 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [1,930 kB]
Get:50 http://security.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [50.3 kB]
Get:51 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 DEP-11 Metadata [59.0 kB]
Get:52 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 DEP-11 Metadata [2,464 B]
Fetched 12.5 MB in 58s (216 kB/s)                                                                                                                                                                                 

Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  gimp-data libbabl-0.1-0 libdca0 libde265-0 libgegl-0.3-0 libgimp2.0 libgssdp-1.0-3 libgupnp-1.0-4 libgupnp-igd-1.0-4 libkate1 liblilv-0-0 libmms0 libnice10 libnvidia-common-460 libofa0 libserd-0-0
  libsord-0-0 libsoundtouch1 libspandsp2 libsratom-0-0 libsrtp2-1 libvo-aacenc0 libwildmidi-config libwildmidi2 libxatracker2 libzbar0 python3-pyaudio qml-module-qtgraphicaleffects qml-module-qtquick-controls
  qml-module-qtquick-dialogs qml-module-qtquick-layouts qml-module-qtquick-privatewidgets qml-module-qtquick-window2 qml-module-qtquick2 shim xserver-xorg-video-amdgpu xserver-xorg-video-ati
  xserver-xorg-video-fbdev xserver-xorg-video-qxl xserver-xorg-video-radeon xserver-xorg-video-vesa xserver-xorg-video-vmware
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  cuda-11-5 cuda-cccl-11-5 cuda-command-line-tools-11-5 cuda-compiler-11-5 cuda-cudart-11-5 cuda-cudart-dev-11-5 cuda-cuobjdump-11-5 cuda-cupti-11-5 cuda-cupti-dev-11-5 cuda-cuxxfilt-11-5 cuda-demo-suite-11-5
  cuda-documentation-11-5 cuda-driver-dev-11-5 cuda-drivers cuda-drivers-495 cuda-gdb-11-5 cuda-libraries-11-5 cuda-libraries-dev-11-5 cuda-memcheck-11-5 cuda-nsight-11-5 cuda-nsight-compute-11-5
  cuda-nsight-systems-11-5 cuda-nvcc-11-5 cuda-nvdisasm-11-5 cuda-nvml-dev-11-5 cuda-nvprof-11-5 cuda-nvprune-11-5 cuda-nvrtc-11-5 cuda-nvrtc-dev-11-5 cuda-nvtx-11-5 cuda-nvvp-11-5 cuda-runtime-11-5
  cuda-samples-11-5 cuda-sanitizer-11-5 cuda-toolkit-11-5 cuda-toolkit-11-5-config-common cuda-toolkit-11-config-common cuda-toolkit-config-common cuda-tools-11-5 cuda-visual-tools-11-5 gds-tools-11-5
  libcublas-11-5 libcublas-dev-11-5 libcufft-11-5 libcufft-dev-11-5 libcufile-11-5 libcufile-dev-11-5 libcurand-11-5 libcurand-dev-11-5 libcusolver-11-5 libcusolver-dev-11-5 libcusparse-11-5
  libcusparse-dev-11-5 libnpp-11-5 libnpp-dev-11-5 libnvidia-cfg1-495 libnvidia-common-495 libnvidia-compute-495 libnvidia-decode-495 libnvidia-encode-495 libnvidia-extra-495 libnvidia-fbc1-495
  libnvidia-gl-495 libnvjpeg-11-5 libnvjpeg-dev-11-5 liburcu6 nsight-compute-2021.3.0 nsight-systems-2021.3.3 nvidia-compute-utils-495 nvidia-dkms-495 nvidia-driver-495 nvidia-kernel-common-495
  nvidia-kernel-source-495 nvidia-modprobe nvidia-settings nvidia-utils-495 xserver-xorg-video-nvidia-495
Recommended packages:
  libnvidia-compute-495:i386 libnvidia-decode-495:i386 libnvidia-encode-495:i386 libnvidia-fbc1-495:i386 libnvidia-gl-495:i386
The following packages will be REMOVED:
  libnvidia-cfg1-460 libnvidia-compute-460 libnvidia-decode-460 libnvidia-encode-460 libnvidia-extra-460 libnvidia-fbc1-460 libnvidia-gl-460 libnvidia-ifr1-460 nvidia-compute-utils-460 nvidia-dkms-460
  nvidia-driver-460 nvidia-kernel-common-460 nvidia-kernel-source-460 nvidia-utils-460 xserver-xorg-video-nvidia-460
The following NEW packages will be installed:
  cuda cuda-11-5 cuda-cccl-11-5 cuda-command-line-tools-11-5 cuda-compiler-11-5 cuda-cudart-11-5 cuda-cudart-dev-11-5 cuda-cuobjdump-11-5 cuda-cupti-11-5 cuda-cupti-dev-11-5 cuda-cuxxfilt-11-5
  cuda-demo-suite-11-5 cuda-documentation-11-5 cuda-driver-dev-11-5 cuda-drivers cuda-drivers-495 cuda-gdb-11-5 cuda-libraries-11-5 cuda-libraries-dev-11-5 cuda-memcheck-11-5 cuda-nsight-11-5
  cuda-nsight-compute-11-5 cuda-nsight-systems-11-5 cuda-nvcc-11-5 cuda-nvdisasm-11-5 cuda-nvml-dev-11-5 cuda-nvprof-11-5 cuda-nvprune-11-5 cuda-nvrtc-11-5 cuda-nvrtc-dev-11-5 cuda-nvtx-11-5 cuda-nvvp-11-5
  cuda-runtime-11-5 cuda-samples-11-5 cuda-sanitizer-11-5 cuda-toolkit-11-5 cuda-toolkit-11-5-config-common cuda-toolkit-11-config-common cuda-toolkit-config-common cuda-tools-11-5 cuda-visual-tools-11-5
  gds-tools-11-5 libcublas-11-5 libcublas-dev-11-5 libcufft-11-5 libcufft-dev-11-5 libcufile-11-5 libcufile-dev-11-5 libcurand-11-5 libcurand-dev-11-5 libcusolver-11-5 libcusolver-dev-11-5 libcusparse-11-5
  libcusparse-dev-11-5 libnpp-11-5 libnpp-dev-11-5 libnvidia-cfg1-495 libnvidia-common-495 libnvidia-compute-495 libnvidia-decode-495 libnvidia-encode-495 libnvidia-extra-495 libnvidia-fbc1-495
  libnvidia-gl-495 libnvjpeg-11-5 libnvjpeg-dev-11-5 liburcu6 nsight-compute-2021.3.0 nsight-systems-2021.3.3 nvidia-compute-utils-495 nvidia-dkms-495 nvidia-driver-495 nvidia-kernel-common-495
  nvidia-kernel-source-495 nvidia-modprobe nvidia-utils-495 xserver-xorg-video-nvidia-495
The following packages will be upgraded:
  nvidia-settings
1 upgraded, 77 newly installed, 15 to remove and 107 not upgraded.
Need to get 2,532 MB of archives.
After this operation, 5,262 MB of additional disk space will be used.
Get:1 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-toolkit-config-common 11.5.50-1 [16.3 kB]
Get:2 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-toolkit-11-config-common 11.5.50-1 [16.3 kB]
Get:3 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-toolkit-11-5-config-common 11.5.50-1 [16.2 kB]
Get:4 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-cudart-11-5 11.5.50-1 [159 kB]
Get:5 http://jp.archive.ubuntu.com/ubuntu bionic-updates/main amd64 liburcu6 amd64 0.10.1-1ubuntu1 [52.2 kB]
Get:6 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-nvrtc-11-5 11.5.50-1 [14.9 MB]
Get:7 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  libcublas-11-5 11.7.3.1-1 [207 MB]
Get:8 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  libcufft-11-5 10.6.0.54-1 [68.3 MB]                                                                                              
Get:9 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  libcufile-11-5 1.1.0.37-1 [420 kB]                                                                                               
Get:10 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  libcurand-11-5 10.2.6.48-1 [39.7 MB]                                                                                            
Get:11 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  libcusolver-11-5 11.2.1.48-1 [39.1 MB]                                                                                          
Get:12 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  libcusparse-11-5 11.7.0.31-1 [101 MB]                                                                                           
Get:13 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  libnpp-11-5 11.5.1.53-1 [79.7 MB]                                                                                               
Get:14 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  libnvjpeg-11-5 11.5.3.48-1 [1,710 kB]                                                                                           
Get:15 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-libraries-11-5 11.5.0-1 [2,514 B]                                                                                          
Get:16 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  libnvidia-common-495 495.29.05-0ubuntu1 [10.3 kB]                                                                               
Get:17 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  libnvidia-compute-495 495.29.05-0ubuntu1 [31.3 MB]                                                                              
Get:18 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  libnvidia-decode-495 495.29.05-0ubuntu1 [1,268 kB]                                                                              
Get:19 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  libnvidia-encode-495 495.29.05-0ubuntu1 [41.8 kB]                                                                               
Get:20 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  libnvidia-fbc1-495 495.29.05-0ubuntu1 [46.7 kB]                                                                                 
Get:21 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  libnvidia-gl-495 495.29.05-0ubuntu1 [148 MB]                                                                                    
Get:22 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  nvidia-compute-utils-495 495.29.05-0ubuntu1 [107 kB]                                                                            
Get:23 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  nvidia-kernel-source-495 495.29.05-0ubuntu1 [27.1 MB]                                                                           
Get:24 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  nvidia-kernel-common-495 495.29.05-0ubuntu1 [18.8 MB]                                                                           
Get:25 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  nvidia-dkms-495 495.29.05-0ubuntu1 [29.5 kB]                                                                                    
Get:26 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  libnvidia-extra-495 495.29.05-0ubuntu1 [46.1 kB]                                                                                
Get:27 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  nvidia-utils-495 495.29.05-0ubuntu1 [373 kB]                                                                                    
Get:28 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  libnvidia-cfg1-495 495.29.05-0ubuntu1 [79.3 kB]                                                                                 
Get:29 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  xserver-xorg-video-nvidia-495 495.29.05-0ubuntu1 [1,388 kB]                                                                     
Get:30 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  nvidia-driver-495 495.29.05-0ubuntu1 [442 kB]                                                                                   
Get:31 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  nvidia-modprobe 495.29.05-0ubuntu1 [19.8 kB]                                                                                    
Get:32 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  nvidia-settings 495.29.05-0ubuntu1 [923 kB]                                                                                     
Get:33 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-drivers-495 495.29.05-1 [2,612 B]                                                                                          
Get:34 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-drivers 495.29.05-1 [2,500 B]                                                                                              
Get:35 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-runtime-11-5 11.5.0-1 [2,420 B]                                                                                            
Get:36 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-cuobjdump-11-5 11.5.50-1 [115 kB]                                                                                          
Get:37 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-cuxxfilt-11-5 11.5.50-1 [188 kB]                                                                                           
Get:38 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-cccl-11-5 11.5.62-1 [997 kB]                                                                                               
Get:39 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-driver-dev-11-5 11.5.50-1 [26.7 kB]                                                                                        
Get:40 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-cudart-dev-11-5 11.5.50-1 [750 kB]                                                                                         
Get:41 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-nvcc-11-5 11.5.50-1 [35.5 MB]                                                                                              
Get:42 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-nvprune-11-5 11.5.50-1 [57.6 kB]                                                                                           
Get:43 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-compiler-11-5 11.5.0-1 [2,426 B]                                                                                           
Get:44 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-nvrtc-dev-11-5 11.5.50-1 [13.3 MB]                                                                                         
Get:45 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  libcublas-dev-11-5 11.7.3.1-1 [213 MB]                                                                                          
Get:46 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  libcufft-dev-11-5 10.6.0.54-1 [153 MB]                                                                                          
Get:47 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  libcufile-dev-11-5 1.1.0.37-1 [6,926 kB]                                                                                        
Get:48 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  libcurand-dev-11-5 10.2.6.48-1 [39.9 MB]                                                                                        
Get:49 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  libcusolver-dev-11-5 11.2.1.48-1 [26.2 MB]                                                                                      
Get:50 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  libcusparse-dev-11-5 11.7.0.31-1 [102 MB]                                                                                       
Get:51 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  libnpp-dev-11-5 11.5.1.53-1 [79.4 MB]                                                                                           
Get:52 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  libnvjpeg-dev-11-5 11.5.3.48-1 [1,383 kB]                                                                                       
Get:53 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-libraries-dev-11-5 11.5.0-1 [2,540 B]                                                                                      
Get:54 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-cupti-11-5 11.5.57-1 [12.4 MB]                                                                                             
Get:55 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-cupti-dev-11-5 11.5.57-1 [2,467 kB]                                                                                        
Get:56 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-nvdisasm-11-5 11.5.50-1 [32.8 MB]                                                                                          
Get:57 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-gdb-11-5 11.5.50-1 [4,094 kB]                                                                                              
Get:58 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-memcheck-11-5 11.5.50-1 [142 kB]                                                                                           
Get:59 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-nvprof-11-5 11.5.50-1 [1,943 kB]                                                                                           
Get:60 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-nvtx-11-5 11.5.50-1 [51.4 kB]                                                                                              
Get:61 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-sanitizer-11-5 11.5.50-1 [7,426 kB]                                                                                        
Get:62 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-command-line-tools-11-5 11.5.0-1 [2,468 B]                                                                                 
Get:63 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  nsight-compute-2021.3.0 2021.3.0.13-1 [409 MB]                                                                                  
Get:64 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-nsight-compute-11-5 11.5.0-1 [3,708 B]                                                                                     
Get:65 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  nsight-systems-2021.3.3 2021.3.3.2-b99c4d6 [275 MB]                                                                             
Get:66 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-nsight-systems-11-5 11.5.0-1 [3,306 B]                                                                                     
Get:67 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-nsight-11-5 11.5.50-1 [119 MB]                                                                                             
Get:68 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-nvml-dev-11-5 11.5.50-1 [75.2 kB]                                                                                          
Get:69 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-nvvp-11-5 11.5.50-1 [113 MB]                                                                                               
Get:70 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-visual-tools-11-5 11.5.0-1 [2,868 B]                                                                                       
Get:71 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  gds-tools-11-5 1.1.0.37-1 [38.7 MB]                                                                                             
Get:72 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-tools-11-5 11.5.0-1 [2,392 B]                                                                                              
Get:73 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-samples-11-5 11.5.56-1 [59.2 MB]                                                                                           
Get:74 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-documentation-11-5 11.5.50-1 [48.2 kB]                                                                                     
Get:75 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-toolkit-11-5 11.5.0-1 [3,376 B]                                                                                            
Get:76 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-demo-suite-11-5 11.5.50-1 [3,981 kB]                                                                                       
Get:77 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-11-5 11.5.0-1 [2,448 B]                                                                                                    
Get:78 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda 11.5.0-1 [2,398 B]                                                                                                         
Fetched 2,532 MB in 1min 14s (34.3 MB/s)                                                                                                                                                                          
Extracting templates from packages: 100%
(Reading database ... 343448 files and directories currently installed.)
Removing nvidia-driver-460 (460.91.03-0ubuntu1) ...
Removing xserver-xorg-video-nvidia-460 (460.91.03-0ubuntu1) ...
Removing libnvidia-cfg1-460:amd64 (460.91.03-0ubuntu1) ...
Removing libnvidia-encode-460:amd64 (460.91.03-0ubuntu1) ...
Removing libnvidia-decode-460:amd64 (460.91.03-0ubuntu1) ...
Removing nvidia-utils-460 (460.91.03-0ubuntu1) ...
Removing libnvidia-extra-460:amd64 (460.91.03-0ubuntu1) ...
Removing libnvidia-fbc1-460:amd64 (460.91.03-0ubuntu1) ...
Removing libnvidia-ifr1-460:amd64 (460.91.03-0ubuntu1) ...
Removing libnvidia-gl-460:amd64 (460.91.03-0ubuntu1) ...
Removing nvidia-compute-utils-460 (460.91.03-0ubuntu1) ...
Removing nvidia-dkms-460 (460.91.03-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/put_your_quirks_here
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
update-initramfs: deferring update (trigger activated)
Removing nvidia-kernel-common-460 (460.91.03-0ubuntu1) ...
update-initramfs: deferring update (trigger activated)
Removing nvidia-kernel-source-460 (460.91.03-0ubuntu1) ...
Removing libnvidia-compute-460:amd64 (460.91.03-0ubuntu1) ...
Selecting previously unselected package cuda-toolkit-config-common.
(Reading database ... 342853 files and directories currently installed.)
Preparing to unpack .../00-cuda-toolkit-config-common_11.5.50-1_all.deb ...
Unpacking cuda-toolkit-config-common (11.5.50-1) ...
Selecting previously unselected package cuda-toolkit-11-config-common.
Preparing to unpack .../01-cuda-toolkit-11-config-common_11.5.50-1_all.deb ...
Unpacking cuda-toolkit-11-config-common (11.5.50-1) ...
Selecting previously unselected package cuda-toolkit-11-5-config-common.
Preparing to unpack .../02-cuda-toolkit-11-5-config-common_11.5.50-1_all.deb ...
Unpacking cuda-toolkit-11-5-config-common (11.5.50-1) ...
Selecting previously unselected package cuda-cudart-11-5.
Preparing to unpack .../03-cuda-cudart-11-5_11.5.50-1_amd64.deb ...
Unpacking cuda-cudart-11-5 (11.5.50-1) ...
Selecting previously unselected package cuda-nvrtc-11-5.
Preparing to unpack .../04-cuda-nvrtc-11-5_11.5.50-1_amd64.deb ...
Unpacking cuda-nvrtc-11-5 (11.5.50-1) ...
Selecting previously unselected package libcublas-11-5.
Preparing to unpack .../05-libcublas-11-5_11.7.3.1-1_amd64.deb ...
Unpacking libcublas-11-5 (11.7.3.1-1) ...
Selecting previously unselected package libcufft-11-5.
Preparing to unpack .../06-libcufft-11-5_10.6.0.54-1_amd64.deb ...
Unpacking libcufft-11-5 (10.6.0.54-1) ...
Selecting previously unselected package liburcu6:amd64.
Preparing to unpack .../07-liburcu6_0.10.1-1ubuntu1_amd64.deb ...
Unpacking liburcu6:amd64 (0.10.1-1ubuntu1) ...
Selecting previously unselected package libcufile-11-5.
Preparing to unpack .../08-libcufile-11-5_1.1.0.37-1_amd64.deb ...
Unpacking libcufile-11-5 (1.1.0.37-1) ...
Selecting previously unselected package libcurand-11-5.
Preparing to unpack .../09-libcurand-11-5_10.2.6.48-1_amd64.deb ...
Unpacking libcurand-11-5 (10.2.6.48-1) ...
Selecting previously unselected package libcusolver-11-5.
Preparing to unpack .../10-libcusolver-11-5_11.2.1.48-1_amd64.deb ...
Unpacking libcusolver-11-5 (11.2.1.48-1) ...
Selecting previously unselected package libcusparse-11-5.
Preparing to unpack .../11-libcusparse-11-5_11.7.0.31-1_amd64.deb ...
Unpacking libcusparse-11-5 (11.7.0.31-1) ...
Selecting previously unselected package libnpp-11-5.
Preparing to unpack .../12-libnpp-11-5_11.5.1.53-1_amd64.deb ...
Unpacking libnpp-11-5 (11.5.1.53-1) ...
Selecting previously unselected package libnvjpeg-11-5.
Preparing to unpack .../13-libnvjpeg-11-5_11.5.3.48-1_amd64.deb ...
Unpacking libnvjpeg-11-5 (11.5.3.48-1) ...
Selecting previously unselected package cuda-libraries-11-5.
Preparing to unpack .../14-cuda-libraries-11-5_11.5.0-1_amd64.deb ...
Unpacking cuda-libraries-11-5 (11.5.0-1) ...
Selecting previously unselected package libnvidia-common-495.
Preparing to unpack .../15-libnvidia-common-495_495.29.05-0ubuntu1_all.deb ...
Unpacking libnvidia-common-495 (495.29.05-0ubuntu1) ...
Selecting previously unselected package libnvidia-compute-495:amd64.
Preparing to unpack .../16-libnvidia-compute-495_495.29.05-0ubuntu1_amd64.deb ...
Unpacking libnvidia-compute-495:amd64 (495.29.05-0ubuntu1) ...
Selecting previously unselected package libnvidia-decode-495:amd64.
Preparing to unpack .../17-libnvidia-decode-495_495.29.05-0ubuntu1_amd64.deb ...
Unpacking libnvidia-decode-495:amd64 (495.29.05-0ubuntu1) ...
Selecting previously unselected package libnvidia-encode-495:amd64.
Preparing to unpack .../18-libnvidia-encode-495_495.29.05-0ubuntu1_amd64.deb ...
Unpacking libnvidia-encode-495:amd64 (495.29.05-0ubuntu1) ...
Selecting previously unselected package libnvidia-fbc1-495:amd64.
Preparing to unpack .../19-libnvidia-fbc1-495_495.29.05-0ubuntu1_amd64.deb ...
Unpacking libnvidia-fbc1-495:amd64 (495.29.05-0ubuntu1) ...
Selecting previously unselected package libnvidia-gl-495:amd64.
Preparing to unpack .../20-libnvidia-gl-495_495.29.05-0ubuntu1_amd64.deb ...
dpkg-query: no packages found matching libnvidia-gl-450
Unpacking libnvidia-gl-495:amd64 (495.29.05-0ubuntu1) ...
Selecting previously unselected package nvidia-compute-utils-495.
Preparing to unpack .../21-nvidia-compute-utils-495_495.29.05-0ubuntu1_amd64.deb ...
Unpacking nvidia-compute-utils-495 (495.29.05-0ubuntu1) ...
Selecting previously unselected package nvidia-kernel-source-495.
Preparing to unpack .../22-nvidia-kernel-source-495_495.29.05-0ubuntu1_amd64.deb ...
Unpacking nvidia-kernel-source-495 (495.29.05-0ubuntu1) ...
Selecting previously unselected package nvidia-kernel-common-495.
Preparing to unpack .../23-nvidia-kernel-common-495_495.29.05-0ubuntu1_amd64.deb ...
Unpacking nvidia-kernel-common-495 (495.29.05-0ubuntu1) ...
Selecting previously unselected package nvidia-dkms-495.
Preparing to unpack .../24-nvidia-dkms-495_495.29.05-0ubuntu1_amd64.deb ...
Unpacking nvidia-dkms-495 (495.29.05-0ubuntu1) ...
Selecting previously unselected package libnvidia-extra-495:amd64.
Preparing to unpack .../25-libnvidia-extra-495_495.29.05-0ubuntu1_amd64.deb ...
Unpacking libnvidia-extra-495:amd64 (495.29.05-0ubuntu1) ...
Selecting previously unselected package nvidia-utils-495.
Preparing to unpack .../26-nvidia-utils-495_495.29.05-0ubuntu1_amd64.deb ...
Unpacking nvidia-utils-495 (495.29.05-0ubuntu1) ...
Selecting previously unselected package libnvidia-cfg1-495:amd64.
Preparing to unpack .../27-libnvidia-cfg1-495_495.29.05-0ubuntu1_amd64.deb ...
Unpacking libnvidia-cfg1-495:amd64 (495.29.05-0ubuntu1) ...
Selecting previously unselected package xserver-xorg-video-nvidia-495.
Preparing to unpack .../28-xserver-xorg-video-nvidia-495_495.29.05-0ubuntu1_amd64.deb ...
Unpacking xserver-xorg-video-nvidia-495 (495.29.05-0ubuntu1) ...
Selecting previously unselected package nvidia-driver-495.
Preparing to unpack .../29-nvidia-driver-495_495.29.05-0ubuntu1_amd64.deb ...
Unpacking nvidia-driver-495 (495.29.05-0ubuntu1) ...
Selecting previously unselected package nvidia-modprobe.
Preparing to unpack .../30-nvidia-modprobe_495.29.05-0ubuntu1_amd64.deb ...
Unpacking nvidia-modprobe (495.29.05-0ubuntu1) ...
Preparing to unpack .../31-nvidia-settings_495.29.05-0ubuntu1_amd64.deb ...
Unpacking nvidia-settings (495.29.05-0ubuntu1) over (470.57.02-0ubuntu1) ...
Selecting previously unselected package cuda-drivers-495.
Preparing to unpack .../32-cuda-drivers-495_495.29.05-1_amd64.deb ...
Unpacking cuda-drivers-495 (495.29.05-1) ...
Selecting previously unselected package cuda-drivers.
Preparing to unpack .../33-cuda-drivers_495.29.05-1_amd64.deb ...
Unpacking cuda-drivers (495.29.05-1) ...
Selecting previously unselected package cuda-runtime-11-5.
Preparing to unpack .../34-cuda-runtime-11-5_11.5.0-1_amd64.deb ...
Unpacking cuda-runtime-11-5 (11.5.0-1) ...
Selecting previously unselected package cuda-cuobjdump-11-5.
Preparing to unpack .../35-cuda-cuobjdump-11-5_11.5.50-1_amd64.deb ...
Unpacking cuda-cuobjdump-11-5 (11.5.50-1) ...
Selecting previously unselected package cuda-cuxxfilt-11-5.
Preparing to unpack .../36-cuda-cuxxfilt-11-5_11.5.50-1_amd64.deb ...
Unpacking cuda-cuxxfilt-11-5 (11.5.50-1) ...
Selecting previously unselected package cuda-cccl-11-5.
Preparing to unpack .../37-cuda-cccl-11-5_11.5.62-1_amd64.deb ...
Unpacking cuda-cccl-11-5 (11.5.62-1) ...
Selecting previously unselected package cuda-driver-dev-11-5.
Preparing to unpack .../38-cuda-driver-dev-11-5_11.5.50-1_amd64.deb ...
Unpacking cuda-driver-dev-11-5 (11.5.50-1) ...
Selecting previously unselected package cuda-cudart-dev-11-5.
Preparing to unpack .../39-cuda-cudart-dev-11-5_11.5.50-1_amd64.deb ...
Unpacking cuda-cudart-dev-11-5 (11.5.50-1) ...
Selecting previously unselected package cuda-nvcc-11-5.
Preparing to unpack .../40-cuda-nvcc-11-5_11.5.50-1_amd64.deb ...
Unpacking cuda-nvcc-11-5 (11.5.50-1) ...
Selecting previously unselected package cuda-nvprune-11-5.
Preparing to unpack .../41-cuda-nvprune-11-5_11.5.50-1_amd64.deb ...
Unpacking cuda-nvprune-11-5 (11.5.50-1) ...
Selecting previously unselected package cuda-compiler-11-5.
Preparing to unpack .../42-cuda-compiler-11-5_11.5.0-1_amd64.deb ...
Unpacking cuda-compiler-11-5 (11.5.0-1) ...
Selecting previously unselected package cuda-nvrtc-dev-11-5.
Preparing to unpack .../43-cuda-nvrtc-dev-11-5_11.5.50-1_amd64.deb ...
Unpacking cuda-nvrtc-dev-11-5 (11.5.50-1) ...
Selecting previously unselected package libcublas-dev-11-5.
Preparing to unpack .../44-libcublas-dev-11-5_11.7.3.1-1_amd64.deb ...
Unpacking libcublas-dev-11-5 (11.7.3.1-1) ...
Selecting previously unselected package libcufft-dev-11-5.
Preparing to unpack .../45-libcufft-dev-11-5_10.6.0.54-1_amd64.deb ...
Unpacking libcufft-dev-11-5 (10.6.0.54-1) ...
Selecting previously unselected package libcufile-dev-11-5.
Preparing to unpack .../46-libcufile-dev-11-5_1.1.0.37-1_amd64.deb ...
Unpacking libcufile-dev-11-5 (1.1.0.37-1) ...
Selecting previously unselected package libcurand-dev-11-5.
Preparing to unpack .../47-libcurand-dev-11-5_10.2.6.48-1_amd64.deb ...
Unpacking libcurand-dev-11-5 (10.2.6.48-1) ...
Selecting previously unselected package libcusolver-dev-11-5.
Preparing to unpack .../48-libcusolver-dev-11-5_11.2.1.48-1_amd64.deb ...
Unpacking libcusolver-dev-11-5 (11.2.1.48-1) ...
Selecting previously unselected package libcusparse-dev-11-5.
Preparing to unpack .../49-libcusparse-dev-11-5_11.7.0.31-1_amd64.deb ...
Unpacking libcusparse-dev-11-5 (11.7.0.31-1) ...
Selecting previously unselected package libnpp-dev-11-5.
Preparing to unpack .../50-libnpp-dev-11-5_11.5.1.53-1_amd64.deb ...
Unpacking libnpp-dev-11-5 (11.5.1.53-1) ...
Selecting previously unselected package libnvjpeg-dev-11-5.
Preparing to unpack .../51-libnvjpeg-dev-11-5_11.5.3.48-1_amd64.deb ...
Unpacking libnvjpeg-dev-11-5 (11.5.3.48-1) ...
Selecting previously unselected package cuda-libraries-dev-11-5.
Preparing to unpack .../52-cuda-libraries-dev-11-5_11.5.0-1_amd64.deb ...
Unpacking cuda-libraries-dev-11-5 (11.5.0-1) ...
Selecting previously unselected package cuda-cupti-11-5.
Preparing to unpack .../53-cuda-cupti-11-5_11.5.57-1_amd64.deb ...
Unpacking cuda-cupti-11-5 (11.5.57-1) ...
Selecting previously unselected package cuda-cupti-dev-11-5.
Preparing to unpack .../54-cuda-cupti-dev-11-5_11.5.57-1_amd64.deb ...
Unpacking cuda-cupti-dev-11-5 (11.5.57-1) ...
Selecting previously unselected package cuda-nvdisasm-11-5.
Preparing to unpack .../55-cuda-nvdisasm-11-5_11.5.50-1_amd64.deb ...
Unpacking cuda-nvdisasm-11-5 (11.5.50-1) ...
Selecting previously unselected package cuda-gdb-11-5.
Preparing to unpack .../56-cuda-gdb-11-5_11.5.50-1_amd64.deb ...
Unpacking cuda-gdb-11-5 (11.5.50-1) ...
Selecting previously unselected package cuda-memcheck-11-5.
Preparing to unpack .../57-cuda-memcheck-11-5_11.5.50-1_amd64.deb ...
Unpacking cuda-memcheck-11-5 (11.5.50-1) ...
Selecting previously unselected package cuda-nvprof-11-5.
Preparing to unpack .../58-cuda-nvprof-11-5_11.5.50-1_amd64.deb ...
Unpacking cuda-nvprof-11-5 (11.5.50-1) ...
Selecting previously unselected package cuda-nvtx-11-5.
Preparing to unpack .../59-cuda-nvtx-11-5_11.5.50-1_amd64.deb ...
Unpacking cuda-nvtx-11-5 (11.5.50-1) ...
Selecting previously unselected package cuda-sanitizer-11-5.
Preparing to unpack .../60-cuda-sanitizer-11-5_11.5.50-1_amd64.deb ...
Unpacking cuda-sanitizer-11-5 (11.5.50-1) ...
Selecting previously unselected package cuda-command-line-tools-11-5.
Preparing to unpack .../61-cuda-command-line-tools-11-5_11.5.0-1_amd64.deb ...
Unpacking cuda-command-line-tools-11-5 (11.5.0-1) ...
Selecting previously unselected package nsight-compute-2021.3.0.
Preparing to unpack .../62-nsight-compute-2021.3.0_2021.3.0.13-1_amd64.deb ...
Unpacking nsight-compute-2021.3.0 (2021.3.0.13-1) ...
Selecting previously unselected package cuda-nsight-compute-11-5.
Preparing to unpack .../63-cuda-nsight-compute-11-5_11.5.0-1_amd64.deb ...
Unpacking cuda-nsight-compute-11-5 (11.5.0-1) ...
Selecting previously unselected package nsight-systems-2021.3.3.
Preparing to unpack .../64-nsight-systems-2021.3.3_2021.3.3.2-b99c4d6_amd64.deb ...
Unpacking nsight-systems-2021.3.3 (2021.3.3.2-b99c4d6) ...
Selecting previously unselected package cuda-nsight-systems-11-5.
Preparing to unpack .../65-cuda-nsight-systems-11-5_11.5.0-1_amd64.deb ...
Unpacking cuda-nsight-systems-11-5 (11.5.0-1) ...
Selecting previously unselected package cuda-nsight-11-5.
Preparing to unpack .../66-cuda-nsight-11-5_11.5.50-1_amd64.deb ...
Unpacking cuda-nsight-11-5 (11.5.50-1) ...
Selecting previously unselected package cuda-nvml-dev-11-5.
Preparing to unpack .../67-cuda-nvml-dev-11-5_11.5.50-1_amd64.deb ...
Unpacking cuda-nvml-dev-11-5 (11.5.50-1) ...
Selecting previously unselected package cuda-nvvp-11-5.
Preparing to unpack .../68-cuda-nvvp-11-5_11.5.50-1_amd64.deb ...
Unpacking cuda-nvvp-11-5 (11.5.50-1) ...
Selecting previously unselected package cuda-visual-tools-11-5.
Preparing to unpack .../69-cuda-visual-tools-11-5_11.5.0-1_amd64.deb ...
Unpacking cuda-visual-tools-11-5 (11.5.0-1) ...
Selecting previously unselected package gds-tools-11-5.
Preparing to unpack .../70-gds-tools-11-5_1.1.0.37-1_amd64.deb ...
Unpacking gds-tools-11-5 (1.1.0.37-1) ...
Selecting previously unselected package cuda-tools-11-5.
Preparing to unpack .../71-cuda-tools-11-5_11.5.0-1_amd64.deb ...
Unpacking cuda-tools-11-5 (11.5.0-1) ...
Selecting previously unselected package cuda-samples-11-5.
Preparing to unpack .../72-cuda-samples-11-5_11.5.56-1_amd64.deb ...
Unpacking cuda-samples-11-5 (11.5.56-1) ...
Selecting previously unselected package cuda-documentation-11-5.
Preparing to unpack .../73-cuda-documentation-11-5_11.5.50-1_amd64.deb ...
Unpacking cuda-documentation-11-5 (11.5.50-1) ...
Selecting previously unselected package cuda-toolkit-11-5.
Preparing to unpack .../74-cuda-toolkit-11-5_11.5.0-1_amd64.deb ...
Unpacking cuda-toolkit-11-5 (11.5.0-1) ...
Selecting previously unselected package cuda-demo-suite-11-5.
Preparing to unpack .../75-cuda-demo-suite-11-5_11.5.50-1_amd64.deb ...
Unpacking cuda-demo-suite-11-5 (11.5.50-1) ...
Selecting previously unselected package cuda-11-5.
Preparing to unpack .../76-cuda-11-5_11.5.0-1_amd64.deb ...
Unpacking cuda-11-5 (11.5.0-1) ...
Selecting previously unselected package cuda.
Preparing to unpack .../77-cuda_11.5.0-1_amd64.deb ...
Unpacking cuda (11.5.0-1) ...
Setting up cuda-toolkit-11-5-config-common (11.5.50-1) ...
Setting alternatives
update-alternatives: using /usr/local/cuda-11.5 to provide /usr/local/cuda (cuda) in auto mode
update-alternatives: using /usr/local/cuda-11.5 to provide /usr/local/cuda-11 (cuda-11) in auto mode
Setting up cuda-nvrtc-11-5 (11.5.50-1) ...
Setting up gds-tools-11-5 (1.1.0.37-1) ...
Setting up cuda-toolkit-config-common (11.5.50-1) ...
Setting up cuda-nvprof-11-5 (11.5.50-1) ...
Setting up libnvidia-common-495 (495.29.05-0ubuntu1) ...
Setting up libnvidia-gl-495:amd64 (495.29.05-0ubuntu1) ...
Setting up cuda-cuobjdump-11-5 (11.5.50-1) ...
Setting up libnvidia-compute-495:amd64 (495.29.05-0ubuntu1) ...
Setting up cuda-toolkit-11-config-common (11.5.50-1) ...
Setting up cuda-nvml-dev-11-5 (11.5.50-1) ...
Setting up libnvjpeg-11-5 (11.5.3.48-1) ...
Setting up cuda-driver-dev-11-5 (11.5.50-1) ...
Setting up cuda-cudart-11-5 (11.5.50-1) ...
Setting up cuda-memcheck-11-5 (11.5.50-1) ...
Setting up libnvidia-fbc1-495:amd64 (495.29.05-0ubuntu1) ...
Setting up libnvidia-extra-495:amd64 (495.29.05-0ubuntu1) ...
Setting up liburcu6:amd64 (0.10.1-1ubuntu1) ...
Setting up cuda-cuxxfilt-11-5 (11.5.50-1) ...
Setting up libnvidia-cfg1-495:amd64 (495.29.05-0ubuntu1) ...
Setting up nvidia-settings (495.29.05-0ubuntu1) ...
Setting up libcufft-11-5 (10.6.0.54-1) ...
Setting up cuda-nvrtc-dev-11-5 (11.5.50-1) ...
Setting up cuda-nvtx-11-5 (11.5.50-1) ...
Setting up libcusparse-11-5 (11.7.0.31-1) ...
Setting up libcublas-11-5 (11.7.3.1-1) ...
Setting up nsight-systems-2021.3.3 (2021.3.3.2-b99c4d6) ...
update-alternatives: using /opt/nvidia/nsight-systems/2021.3.3/target-linux-x64/nsys to provide /usr/local/bin/nsys (nsys) in auto mode
update-alternatives: error: alternative path /opt/nvidia/nsight-systems/2021.3.3/host-linux-x64/nsight-sys doesn't exist
update-alternatives: error: no alternatives for nsight-sys
update-alternatives: using /opt/nvidia/nsight-systems/2021.3.3/host-linux-x64/nsys-ui to provide /usr/local/bin/nsys-ui (nsys-ui) in auto mode
Setting up libcufile-11-5 (1.1.0.37-1) ...
Setting alternatives
update-alternatives: using /usr/local/cuda-11.5/gds/cufile.json to provide /etc/cufile.json (cufile.json) in auto mode
Setting up libcurand-11-5 (10.2.6.48-1) ...
Setting up libcurand-dev-11-5 (10.2.6.48-1) ...
Setting up nvidia-modprobe (495.29.05-0ubuntu1) ...
Setting up cuda-nvvp-11-5 (11.5.50-1) ...
Setting up nsight-compute-2021.3.0 (2021.3.0.13-1) ...
Setting up cuda-sanitizer-11-5 (11.5.50-1) ...
Setting up cuda-nsight-systems-11-5 (11.5.0-1) ...
Setting up nvidia-utils-495 (495.29.05-0ubuntu1) ...
Setting up nvidia-kernel-common-495 (495.29.05-0ubuntu1) ...
update-initramfs: deferring update (trigger activated)
Setting up cuda-nvprune-11-5 (11.5.50-1) ...
Setting up libcufile-dev-11-5 (1.1.0.37-1) ...
Setting up cuda-cccl-11-5 (11.5.62-1) ...
Setting up nvidia-kernel-source-495 (495.29.05-0ubuntu1) ...
Setting up cuda-nsight-11-5 (11.5.50-1) ...
Setting up cuda-nvdisasm-11-5 (11.5.50-1) ...
Setting up nvidia-dkms-495 (495.29.05-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/put_your_quirks_here
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
Loading new nvidia-495.29.05 DKMS files...
Building for 5.3.0-62-generic
Building for architecture x86_64
Building initial module for 5.3.0-62-generic
Secure Boot not enabled on this system.
Done.

nvidia:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.3.0-62-generic/updates/dkms/

nvidia-modeset.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.3.0-62-generic/updates/dkms/

nvidia-drm.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.3.0-62-generic/updates/dkms/

nvidia-peermem.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.3.0-62-generic/updates/dkms/

nvidia-uvm.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.3.0-62-generic/updates/dkms/

depmod...

DKMS: install completed.
Setting up libcusolver-11-5 (11.2.1.48-1) ...
Setting up nvidia-compute-utils-495 (495.29.05-0ubuntu1) ...
Warning: The home dir /nonexistent you specified can't be accessed: No such file or directory
Adding system user `nvidia-persistenced' (UID 126) ...
Adding new group `nvidia-persistenced' (GID 132) ...
Adding new user `nvidia-persistenced' (UID 126) with group `nvidia-persistenced' ...
Not creating home directory `/nonexistent'.
Setting up libcusolver-dev-11-5 (11.2.1.48-1) ...
Setting up libnpp-11-5 (11.5.1.53-1) ...
Setting up cuda-gdb-11-5 (11.5.50-1) ...
Setting up libnvjpeg-dev-11-5 (11.5.3.48-1) ...
Setting up libcublas-dev-11-5 (11.7.3.1-1) ...
Setting up libnvidia-decode-495:amd64 (495.29.05-0ubuntu1) ...
Setting up xserver-xorg-video-nvidia-495 (495.29.05-0ubuntu1) ...
Setting up cuda-cudart-dev-11-5 (11.5.50-1) ...
Setting up cuda-nsight-compute-11-5 (11.5.0-1) ...
Setting up libcufft-dev-11-5 (10.6.0.54-1) ...
Setting up libcusparse-dev-11-5 (11.7.0.31-1) ...
Setting up cuda-libraries-11-5 (11.5.0-1) ...
Setting up libnpp-dev-11-5 (11.5.1.53-1) ...
Setting up libnvidia-encode-495:amd64 (495.29.05-0ubuntu1) ...
Setting up cuda-nvcc-11-5 (11.5.50-1) ...
Setting up nvidia-driver-495 (495.29.05-0ubuntu1) ...
Setting up cuda-cupti-11-5 (11.5.57-1) ...
Setting up cuda-libraries-dev-11-5 (11.5.0-1) ...
Setting up cuda-compiler-11-5 (11.5.0-1) ...
Setting up cuda-drivers-495 (495.29.05-1) ...
Setting up cuda-cupti-dev-11-5 (11.5.57-1) ...
Setting up cuda-command-line-tools-11-5 (11.5.0-1) ...
Setting up cuda-visual-tools-11-5 (11.5.0-1) ...
Setting up cuda-drivers (495.29.05-1) ...
Setting up cuda-samples-11-5 (11.5.56-1) ...
Setting up cuda-documentation-11-5 (11.5.50-1) ...
Setting up cuda-tools-11-5 (11.5.0-1) ...
Setting up cuda-runtime-11-5 (11.5.0-1) ...
Setting up cuda-demo-suite-11-5 (11.5.50-1) ...
Setting up cuda-toolkit-11-5 (11.5.0-1) ...
Setting alternatives
Setting up cuda-11-5 (11.5.0-1) ...
Setting up cuda (11.5.0-1) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ...
Processing triggers for initramfs-tools (0.130ubuntu3.13) ...
update-initramfs: Generating /boot/initrd.img-5.3.0-62-generic
Processing triggers for libc-bin (2.27-3ubuntu1.4) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
shmpwk commented 3 years ago

Before exec

$ dpkg -l |grep nvidia
ii  libnvidia-cfg1-460:amd64                        460.91.03-0ubuntu1                              amd64        NVIDIA binary OpenGL/GLX configuration library
ii  libnvidia-common-460                            460.91.03-0ubuntu1                              all          Shared files used by the NVIDIA libraries
ii  libnvidia-compute-460:amd64                     460.91.03-0ubuntu1                              amd64        NVIDIA libcompute package
ii  libnvidia-decode-460:amd64                      460.91.03-0ubuntu1                              amd64        NVIDIA Video Decoding runtime libraries
ii  libnvidia-encode-460:amd64                      460.91.03-0ubuntu1                              amd64        NVENC Video Encoding runtime library
ii  libnvidia-extra-460:amd64                       460.91.03-0ubuntu1                              amd64        Extra libraries for the NVIDIA driver
ii  libnvidia-fbc1-460:amd64                        460.91.03-0ubuntu1                              amd64        NVIDIA OpenGL-based Framebuffer Capture runtime library
ii  libnvidia-gl-460:amd64                          460.91.03-0ubuntu1                              amd64        NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii  libnvidia-ifr1-460:amd64                        460.91.03-0ubuntu1                              amd64        NVIDIA OpenGL-based Inband Frame Readback runtime library
ii  nvidia-compute-utils-460                        460.91.03-0ubuntu1                              amd64        NVIDIA compute utilities
ii  nvidia-dkms-460                                 460.91.03-0ubuntu1                              amd64        NVIDIA DKMS package
ii  nvidia-driver-460                               460.91.03-0ubuntu1                              amd64        NVIDIA driver metapackage
ii  nvidia-kernel-common-460                        460.91.03-0ubuntu1                              amd64        Shared files used with the kernel module
ii  nvidia-kernel-source-460                        460.91.03-0ubuntu1                              amd64        NVIDIA kernel source package
ii  nvidia-prime                                    0.8.16~0.18.04.1                                all          Tools to enable NVIDIA's Prime
ii  nvidia-settings                                 470.57.02-0ubuntu1                              amd64        Tool for configuring the NVIDIA graphics driver
ii  nvidia-utils-460                                460.91.03-0ubuntu1                              amd64        NVIDIA driver support binaries
ii  xserver-xorg-video-nvidia-460                   460.91.03-0ubuntu1                              amd64        NVIDIA binary Xorg driver

$ dpkg -l |grep cuda

After exec

$ dpkg -l |grep cuda
ii  cuda                                              11.5.0-1                                        amd64        CUDA meta-package
ii  cuda-11-5                                         11.5.0-1                                        amd64        CUDA 11.5 meta-package
ii  cuda-cccl-11-5                                    11.5.62-1                                       amd64        CUDA CCCL
ii  cuda-command-line-tools-11-5                      11.5.0-1                                        amd64        CUDA command-line tools
ii  cuda-compiler-11-5                                11.5.0-1                                        amd64        CUDA compiler
ii  cuda-cudart-11-5                                  11.5.50-1                                       amd64        CUDA Runtime native Libraries
ii  cuda-cudart-dev-11-5                              11.5.50-1                                       amd64        CUDA Runtime native dev links, headers
ii  cuda-cuobjdump-11-5                               11.5.50-1                                       amd64        CUDA cuobjdump
ii  cuda-cupti-11-5                                   11.5.57-1                                       amd64        CUDA profiling tools runtime libs.
ii  cuda-cupti-dev-11-5                               11.5.57-1                                       amd64        CUDA profiling tools interface.
ii  cuda-cuxxfilt-11-5                                11.5.50-1                                       amd64        CUDA cuxxfilt
ii  cuda-demo-suite-11-5                              11.5.50-1                                       amd64        Demo suite for CUDA
ii  cuda-documentation-11-5                           11.5.50-1                                       amd64        CUDA documentation
ii  cuda-driver-dev-11-5                              11.5.50-1                                       amd64        CUDA Driver native dev stub library
ii  cuda-drivers                                      495.29.05-1                                     amd64        CUDA Driver meta-package, branch-agnostic
ii  cuda-drivers-495                                  495.29.05-1                                     amd64        CUDA Driver meta-package, branch-specific
ii  cuda-gdb-11-5                                     11.5.50-1                                       amd64        CUDA-GDB
ii  cuda-libraries-11-5                               11.5.0-1                                        amd64        CUDA Libraries 11.5 meta-package
ii  cuda-libraries-dev-11-5                           11.5.0-1                                        amd64        CUDA Libraries 11.5 development meta-package
ii  cuda-memcheck-11-5                                11.5.50-1                                       amd64        CUDA-MEMCHECK
ii  cuda-nsight-11-5                                  11.5.50-1                                       amd64        CUDA nsight
ii  cuda-nsight-compute-11-5                          11.5.0-1                                        amd64        NVIDIA Nsight Compute
ii  cuda-nsight-systems-11-5                          11.5.0-1                                        amd64        NVIDIA Nsight Systems
ii  cuda-nvcc-11-5                                    11.5.50-1                                       amd64        CUDA nvcc
ii  cuda-nvdisasm-11-5                                11.5.50-1                                       amd64        CUDA disassembler
ii  cuda-nvml-dev-11-5                                11.5.50-1                                       amd64        NVML native dev links, headers
ii  cuda-nvprof-11-5                                  11.5.50-1                                       amd64        CUDA Profiler tools
ii  cuda-nvprune-11-5                                 11.5.50-1                                       amd64        CUDA nvprune
ii  cuda-nvrtc-11-5                                   11.5.50-1                                       amd64        NVRTC native runtime libraries
ii  cuda-nvrtc-dev-11-5                               11.5.50-1                                       amd64        NVRTC native dev links, headers
ii  cuda-nvtx-11-5                                    11.5.50-1                                       amd64        NVIDIA Tools Extension
ii  cuda-nvvp-11-5                                    11.5.50-1                                       amd64        CUDA Profiler tools
ii  cuda-repo-ubuntu1804-10-2-local-10.2.89-440.33.01 1.0-1                                           amd64        cuda repository configuration files
ii  cuda-runtime-11-5                                 11.5.0-1                                        amd64        CUDA Runtime 11.5 meta-package
ii  cuda-samples-11-5                                 11.5.56-1                                       amd64        CUDA example applications
ii  cuda-sanitizer-11-5                               11.5.50-1                                       amd64        CUDA Sanitizer
ii  cuda-toolkit-11-5                                 11.5.0-1                                        amd64        CUDA Toolkit 11.5 meta-package
ii  cuda-toolkit-11-5-config-common                   11.5.50-1                                       all          Common config package for CUDA Toolkit 11.5.
ii  cuda-toolkit-11-config-common                     11.5.50-1                                       all          Common config package for CUDA Toolkit 11.
ii  cuda-toolkit-config-common                        11.5.50-1                                       all          Common config package for CUDA Toolkit.
ii  cuda-tools-11-5                                   11.5.0-1                                        amd64        CUDA Tools meta-package
ii  cuda-visual-tools-11-5                            11.5.0-1                                        amd64        CUDA visual tools

$ dpkg -l |grep nvidia
ii  libnvidia-cfg1-495:amd64                          495.29.05-0ubuntu1                              amd64        NVIDIA binary OpenGL/GLX configuration library
ii  libnvidia-common-460                              460.91.03-0ubuntu1                              all          Shared files used by the NVIDIA libraries
ii  libnvidia-common-495                              495.29.05-0ubuntu1                              all          Shared files used by the NVIDIA libraries
rc  libnvidia-compute-460:amd64                       460.91.03-0ubuntu1                              amd64        NVIDIA libcompute package
ii  libnvidia-compute-495:amd64                       495.29.05-0ubuntu1                              amd64        NVIDIA libcompute package
ii  libnvidia-decode-495:amd64                        495.29.05-0ubuntu1                              amd64        NVIDIA Video Decoding runtime libraries
ii  libnvidia-encode-495:amd64                        495.29.05-0ubuntu1                              amd64        NVENC Video Encoding runtime library
ii  libnvidia-extra-495:amd64                         495.29.05-0ubuntu1                              amd64        Extra libraries for the NVIDIA driver
ii  libnvidia-fbc1-495:amd64                          495.29.05-0ubuntu1                              amd64        NVIDIA OpenGL-based Framebuffer Capture runtime library
ii  libnvidia-gl-495:amd64                            495.29.05-0ubuntu1                              amd64        NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
rc  nvidia-compute-utils-460                          460.91.03-0ubuntu1                              amd64        NVIDIA compute utilities
ii  nvidia-compute-utils-495                          495.29.05-0ubuntu1                              amd64        NVIDIA compute utilities
rc  nvidia-dkms-460                                   460.91.03-0ubuntu1                              amd64        NVIDIA DKMS package
ii  nvidia-dkms-495                                   495.29.05-0ubuntu1                              amd64        NVIDIA DKMS package
ii  nvidia-driver-495                                 495.29.05-0ubuntu1                              amd64        NVIDIA driver metapackage
rc  nvidia-kernel-common-460                          460.91.03-0ubuntu1                              amd64        Shared files used with the kernel module
ii  nvidia-kernel-common-495                          495.29.05-0ubuntu1                              amd64        Shared files used with the kernel module
ii  nvidia-kernel-source-495                          495.29.05-0ubuntu1                              amd64        NVIDIA kernel source package
ii  nvidia-modprobe                                   495.29.05-0ubuntu1                              amd64        Load the NVIDIA kernel driver and create device files
ii  nvidia-prime                                      0.8.16~0.18.04.1                                all          Tools to enable NVIDIA's Prime
ii  nvidia-settings                                   495.29.05-0ubuntu1                              amd64        Tool for configuring the NVIDIA graphics driver
ii  nvidia-utils-495                                  495.29.05-0ubuntu1                              amd64        NVIDIA driver support binaries
ii  xserver-xorg-video-nvidia-495                     495.29.05-0ubuntu1                              amd64        NVIDIA binary Xorg driver
shmpwk commented 3 years ago

sudo apt-get -y install だと最新のcudaが入ってしまうようだ. 一旦全部消してから,次はどうだろうか. 1.

$ sudo apt-get -y install cuda-10-2

or

  1. $ sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub
    $ echo "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 /" | sudo tee /etc/apt/sources.list.d/cuda.list
    $ sudo apt update 
    $ sudo apt -o Dpkg::Options::="--force-overwrite" install cuda-10-2 cuda-drivers
shmpwk commented 3 years ago

1を実行

$ sudo apt install cuda-10-2
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  gimp-data libbabl-0.1-0 libdca0 libde265-0 libgegl-0.3-0 libgimp2.0 libgssdp-1.0-3 libgupnp-1.0-4 libgupnp-igd-1.0-4 libkate1 liblilv-0-0 libmms0 libnice10 libofa0 libserd-0-0 libsord-0-0 libsoundtouch1
  libspandsp2 libsratom-0-0 libsrtp2-1 libvo-aacenc0 libwildmidi-config libwildmidi2 libxatracker2 libzbar0 python3-pyaudio qml-module-qtgraphicaleffects qml-module-qtquick-controls qml-module-qtquick-dialogs
  qml-module-qtquick-layouts qml-module-qtquick-privatewidgets qml-module-qtquick-window2 qml-module-qtquick2 shim xserver-xorg-video-amdgpu xserver-xorg-video-ati xserver-xorg-video-fbdev
  xserver-xorg-video-qxl xserver-xorg-video-radeon xserver-xorg-video-vesa xserver-xorg-video-vmware
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  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-drivers-495
  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 libcublas-dev libcublas10
  libnvidia-cfg1-495 libnvidia-common-495 libnvidia-compute-495 libnvidia-decode-495 libnvidia-encode-495 libnvidia-extra-495 libnvidia-fbc1-495 libnvidia-gl-495 nsight-compute-2021.3.0 nsight-systems-2021.3.3
  nvidia-compute-utils-495 nvidia-dkms-495 nvidia-driver-495 nvidia-kernel-common-495 nvidia-kernel-source-495 nvidia-modprobe nvidia-prime nvidia-settings nvidia-utils-495 xserver-xorg-video-nvidia-495
Recommended packages:
  libnvidia-compute-495:i386 libnvidia-decode-495:i386 libnvidia-encode-495:i386 libnvidia-fbc1-495:i386 libnvidia-gl-495:i386
The following NEW packages will be installed:
  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-drivers-495
  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 libcublas-dev libcublas10
  libnvidia-cfg1-495 libnvidia-common-495 libnvidia-compute-495 libnvidia-decode-495 libnvidia-encode-495 libnvidia-extra-495 libnvidia-fbc1-495 libnvidia-gl-495 nsight-compute-2021.3.0 nsight-systems-2021.3.3
  nvidia-compute-utils-495 nvidia-dkms-495 nvidia-driver-495 nvidia-kernel-common-495 nvidia-kernel-source-495 nvidia-modprobe nvidia-prime nvidia-settings nvidia-utils-495 xserver-xorg-video-nvidia-495
0 upgraded, 73 newly installed, 0 to remove and 107 not upgraded.
Need to get 1,429 MB/2,343 MB of archives.
After this operation, 4,918 MB of additional disk space will be used.
Get:1 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-license-10-2 10.2.89-1 [16.4 kB]
Get:2 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-misc-headers-10-2 10.2.89-1 [1,111 kB]
Get:3 http://jp.archive.ubuntu.com/ubuntu bionic-updates/main amd64 nvidia-prime all 0.8.16~0.18.04.1 [9,224 B]
Get:4 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-nvcc-10-2 10.2.89-1 [37.4 MB]
Get:5 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-cuobjdump-10-2 10.2.89-1 [88.5 kB]
Get:6 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-nvprune-10-2 10.2.89-1 [39.5 kB]
Get:7 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-compiler-10-2 10.2.89-1 [2,530 B]
Get:8 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-nvdisasm-10-2 10.2.89-1 [22.2 MB]
Get:9 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-gdb-10-2 10.2.89-1 [2,769 kB]
Get:10 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-nvprof-10-2 10.2.89-1 [1,651 kB]
Get:11 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-sanitizer-api-10-2 10.2.89-1 [2,161 kB]
Get:12 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-memcheck-10-2 10.2.89-1 [139 kB]
Get:13 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-cudart-10-2 10.2.89-1 [111 kB]
Get:14 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-driver-dev-10-2 10.2.89-1 [11.8 kB]
Get:15 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-cudart-dev-10-2 10.2.89-1 [491 kB]
Get:16 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-cupti-10-2 10.2.89-1 [8,169 kB]
Get:17 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-cupti-dev-10-2 10.2.89-1 [2,197 kB]
Get:18 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-nvtx-10-2 10.2.89-1 [38.9 kB]
Get:19 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-command-line-tools-10-2 10.2.89-1 [27.0 kB]
Get:20 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-nsight-10-2 10.2.89-1 [2,582 B]
Get:21 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-nvvp-10-2 10.2.89-1 [2,532 B]
Get:22 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-nvrtc-10-2 10.2.89-1 [6,413 kB]
Get:23 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-nvrtc-dev-10-2 10.2.89-1 [8,822 B]
Get:24 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-cusolver-10-2 10.2.89-1 [85.6 MB]
Get:25 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-cusolver-dev-10-2 10.2.89-1 [15.2 MB]
Get:26 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  libcublas10 10.2.3.254-1 [43.1 MB]
Get:27 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  libcublas-dev 10.2.3.254-1 [42.4 MB]
Get:28 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-cufft-10-2 10.2.89-1 [87.8 MB]
Get:29 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-cufft-dev-10-2 10.2.89-1 [164 MB]                                                                                          
Get:30 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-curand-10-2 10.2.89-1 [38.9 MB]                                                                                            
Get:31 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-curand-dev-10-2 10.2.89-1 [39.1 MB]                                                                                        
Get:32 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-cusparse-10-2 10.2.89-1 [59.2 MB]                                                                                          
Get:33 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-cusparse-dev-10-2 10.2.89-1 [59.7 MB]                                                                                      
Get:34 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-npp-10-2 10.2.89-1 [56.7 MB]                                                                                               
Get:35 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-npp-dev-10-2 10.2.89-1 [57.6 MB]                                                                                           
Get:36 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-nvml-dev-10-2 10.2.89-1 [53.8 kB]                                                                                          
Get:37 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-nvjpeg-10-2 10.2.89-1 [1,274 kB]                                                                                           
Get:38 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-nvjpeg-dev-10-2 10.2.89-1 [1,213 kB]                                                                                       
Get:39 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-nsight-compute-10-2 10.2.89-1 [3,712 B]                                                                                    
Get:40 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-nsight-systems-10-2 10.2.89-1 [3,130 B]                                                                                    
Get:41 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-nvgraph-10-2 10.2.89-1 [44.5 MB]                                                                                           
Get:42 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-nvgraph-dev-10-2 10.2.89-1 [35.2 MB]                                                                                       
Get:43 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-visual-tools-10-2 10.2.89-1 [389 MB]                                                                                       
Get:44 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-tools-10-2 10.2.89-1 [2,496 B]                                                                                             
Get:45 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-samples-10-2 10.2.89-1 [65.6 MB]                                                                                           
Get:46 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-documentation-10-2 10.2.89-1 [54.1 MB]                                                                                     
Get:47 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-libraries-dev-10-2 10.2.89-1 [2,614 B]                                                                                     
Get:48 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-libraries-10-2 10.2.89-1 [2,584 B]                                                                                         
Get:49 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-toolkit-10-2 10.2.89-1 [2,830 B]                                                                                           
Get:50 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-runtime-10-2 10.2.89-1 [2,532 B]                                                                                           
Get:51 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-demo-suite-10-2 10.2.89-1 [3,880 kB]                                                                                       
Get:52 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  cuda-10-2 10.2.89-1 [2,558 B]                                                                                                   
Fetched 1,429 MB in 26s (54.5 MB/s)                                                                                                                                                                               
Extracting templates from packages: 100%
Selecting previously unselected package cuda-license-10-2.
(Reading database ... 342732 files and directories currently installed.)
Preparing to unpack .../00-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 .../01-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 .../02-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 .../03-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 .../04-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 .../05-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 .../06-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 .../07-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 .../08-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 .../09-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 .../10-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 .../11-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 .../12-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 .../13-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 .../14-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 .../15-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 .../16-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 .../17-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 .../18-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 .../19-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 .../20-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 .../21-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 .../22-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 .../23-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 .../24-libcublas10_10.2.3.254-1_amd64.deb ...
Unpacking libcublas10 (10.2.3.254-1) ...
Selecting previously unselected package libcublas-dev.
Preparing to unpack .../25-libcublas-dev_10.2.3.254-1_amd64.deb ...
Unpacking libcublas-dev (10.2.3.254-1) ...
Selecting previously unselected package cuda-cufft-10-2.
Preparing to unpack .../26-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 .../27-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 .../28-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 .../29-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 .../30-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 .../31-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 .../32-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 .../33-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 .../34-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 .../35-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 .../36-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-2021.3.0.
Preparing to unpack .../37-nsight-compute-2021.3.0_2021.3.0.13-1_amd64.deb ...
Unpacking nsight-compute-2021.3.0 (2021.3.0.13-1) ...
Selecting previously unselected package cuda-nsight-compute-10-2.
Preparing to unpack .../38-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-2021.3.3.
Preparing to unpack .../39-nsight-systems-2021.3.3_2021.3.3.2-b99c4d6_amd64.deb ...
Unpacking nsight-systems-2021.3.3 (2021.3.3.2-b99c4d6) ...
Selecting previously unselected package cuda-nsight-systems-10-2.
Preparing to unpack .../40-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 .../41-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 .../42-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 .../43-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 .../44-cuda-tools-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-tools-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-samples-10-2.
Preparing to unpack .../45-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 .../46-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 .../47-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 .../48-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 .../49-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-495.
Preparing to unpack .../50-libnvidia-common-495_495.29.05-0ubuntu1_all.deb ...
Unpacking libnvidia-common-495 (495.29.05-0ubuntu1) ...
Selecting previously unselected package libnvidia-compute-495:amd64.
Preparing to unpack .../51-libnvidia-compute-495_495.29.05-0ubuntu1_amd64.deb ...
Unpacking libnvidia-compute-495:amd64 (495.29.05-0ubuntu1) ...
Selecting previously unselected package libnvidia-decode-495:amd64.
Preparing to unpack .../52-libnvidia-decode-495_495.29.05-0ubuntu1_amd64.deb ...
Unpacking libnvidia-decode-495:amd64 (495.29.05-0ubuntu1) ...
Selecting previously unselected package libnvidia-encode-495:amd64.
Preparing to unpack .../53-libnvidia-encode-495_495.29.05-0ubuntu1_amd64.deb ...
Unpacking libnvidia-encode-495:amd64 (495.29.05-0ubuntu1) ...
Selecting previously unselected package libnvidia-fbc1-495:amd64.
Preparing to unpack .../54-libnvidia-fbc1-495_495.29.05-0ubuntu1_amd64.deb ...
Unpacking libnvidia-fbc1-495:amd64 (495.29.05-0ubuntu1) ...
Selecting previously unselected package libnvidia-gl-495:amd64.
Preparing to unpack .../55-libnvidia-gl-495_495.29.05-0ubuntu1_amd64.deb ...
dpkg-query: no packages found matching libnvidia-gl-450
Unpacking libnvidia-gl-495:amd64 (495.29.05-0ubuntu1) ...
Selecting previously unselected package nvidia-compute-utils-495.
Preparing to unpack .../56-nvidia-compute-utils-495_495.29.05-0ubuntu1_amd64.deb ...
Unpacking nvidia-compute-utils-495 (495.29.05-0ubuntu1) ...
Selecting previously unselected package nvidia-kernel-source-495.
Preparing to unpack .../57-nvidia-kernel-source-495_495.29.05-0ubuntu1_amd64.deb ...
Unpacking nvidia-kernel-source-495 (495.29.05-0ubuntu1) ...
Selecting previously unselected package nvidia-kernel-common-495.
Preparing to unpack .../58-nvidia-kernel-common-495_495.29.05-0ubuntu1_amd64.deb ...
Unpacking nvidia-kernel-common-495 (495.29.05-0ubuntu1) ...
Selecting previously unselected package nvidia-dkms-495.
Preparing to unpack .../59-nvidia-dkms-495_495.29.05-0ubuntu1_amd64.deb ...
Unpacking nvidia-dkms-495 (495.29.05-0ubuntu1) ...
Selecting previously unselected package libnvidia-extra-495:amd64.
Preparing to unpack .../60-libnvidia-extra-495_495.29.05-0ubuntu1_amd64.deb ...
Unpacking libnvidia-extra-495:amd64 (495.29.05-0ubuntu1) ...
Selecting previously unselected package nvidia-utils-495.
Preparing to unpack .../61-nvidia-utils-495_495.29.05-0ubuntu1_amd64.deb ...
Unpacking nvidia-utils-495 (495.29.05-0ubuntu1) ...
Selecting previously unselected package libnvidia-cfg1-495:amd64.
Preparing to unpack .../62-libnvidia-cfg1-495_495.29.05-0ubuntu1_amd64.deb ...
Unpacking libnvidia-cfg1-495:amd64 (495.29.05-0ubuntu1) ...
Selecting previously unselected package xserver-xorg-video-nvidia-495.
Preparing to unpack .../63-xserver-xorg-video-nvidia-495_495.29.05-0ubuntu1_amd64.deb ...
Unpacking xserver-xorg-video-nvidia-495 (495.29.05-0ubuntu1) ...
Selecting previously unselected package nvidia-driver-495.
Preparing to unpack .../64-nvidia-driver-495_495.29.05-0ubuntu1_amd64.deb ...
Unpacking nvidia-driver-495 (495.29.05-0ubuntu1) ...
Selecting previously unselected package nvidia-modprobe.
Preparing to unpack .../65-nvidia-modprobe_495.29.05-0ubuntu1_amd64.deb ...
Unpacking nvidia-modprobe (495.29.05-0ubuntu1) ...
Selecting previously unselected package nvidia-settings.
Preparing to unpack .../66-nvidia-settings_495.29.05-0ubuntu1_amd64.deb ...
Unpacking nvidia-settings (495.29.05-0ubuntu1) ...
Selecting previously unselected package cuda-drivers-495.
Preparing to unpack .../67-cuda-drivers-495_495.29.05-1_amd64.deb ...
Unpacking cuda-drivers-495 (495.29.05-1) ...
Selecting previously unselected package cuda-drivers.
Preparing to unpack .../68-cuda-drivers_495.29.05-1_amd64.deb ...
Unpacking cuda-drivers (495.29.05-1) ...
Selecting previously unselected package cuda-runtime-10-2.
Preparing to unpack .../69-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 .../70-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 .../71-cuda-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-10-2 (10.2.89-1) ...
Selecting previously unselected package nvidia-prime.
Preparing to unpack .../72-nvidia-prime_0.8.16~0.18.04.1_all.deb ...
Unpacking nvidia-prime (0.8.16~0.18.04.1) ...
Setting up nvidia-prime (0.8.16~0.18.04.1) ...
Setting up libnvidia-common-495 (495.29.05-0ubuntu1) ...
Setting up libnvidia-gl-495:amd64 (495.29.05-0ubuntu1) ...
Setting up libnvidia-compute-495:amd64 (495.29.05-0ubuntu1) ...
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 cuda-nvprune-10-2 (10.2.89-1) ...
Setting up libnvidia-fbc1-495:amd64 (495.29.05-0ubuntu1) ...
Setting up libnvidia-extra-495:amd64 (495.29.05-0ubuntu1) ...
Setting up cuda-nvrtc-10-2 (10.2.89-1) ...
Setting up cuda-nvtx-10-2 (10.2.89-1) ...
Setting up libnvidia-cfg1-495:amd64 (495.29.05-0ubuntu1) ...
Setting up nvidia-settings (495.29.05-0ubuntu1) ...
Setting up nsight-systems-2021.3.3 (2021.3.3.2-b99c4d6) ...
update-alternatives: using /opt/nvidia/nsight-systems/2021.3.3/target-linux-x64/nsys to provide /usr/local/bin/nsys (nsys) in auto mode
update-alternatives: error: alternative path /opt/nvidia/nsight-systems/2021.3.3/host-linux-x64/nsight-sys doesn't exist
update-alternatives: error: no alternatives for nsight-sys
update-alternatives: using /opt/nvidia/nsight-systems/2021.3.3/host-linux-x64/nsys-ui to provide /usr/local/bin/nsys-ui (nsys-ui) in auto mode
Setting up cuda-nvjpeg-10-2 (10.2.89-1) ...
Setting up libcublas10 (10.2.3.254-1) ...
Setting up libcublas-dev (10.2.3.254-1) ...
Setting up cuda-cufft-10-2 (10.2.89-1) ...
Setting up nvidia-modprobe (495.29.05-0ubuntu1) ...
Setting up nsight-compute-2021.3.0 (2021.3.0.13-1) ...
Setting up cuda-cusparse-10-2 (10.2.89-1) ...
Setting up cuda-cuobjdump-10-2 (10.2.89-1) ...
Setting up nvidia-utils-495 (495.29.05-0ubuntu1) ...
Setting up nvidia-kernel-common-495 (495.29.05-0ubuntu1) ...
update-initramfs: deferring update (trigger activated)
Setting up cuda-sanitizer-api-10-2 (10.2.89-1) ...
Setting up cuda-nvjpeg-dev-10-2 (10.2.89-1) ...
Setting up cuda-cusolver-10-2 (10.2.89-1) ...
Setting up cuda-misc-headers-10-2 (10.2.89-1) ...
Setting up cuda-nvvp-10-2 (10.2.89-1) ...
Setting up cuda-curand-10-2 (10.2.89-1) ...
Setting up cuda-cudart-10-2 (10.2.89-1) ...
Setting up nvidia-kernel-source-495 (495.29.05-0ubuntu1) ...
Setting up cuda-npp-10-2 (10.2.89-1) ...
Setting up cuda-cufft-dev-10-2 (10.2.89-1) ...
Setting up nvidia-dkms-495 (495.29.05-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/put_your_quirks_here
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
Loading new nvidia-495.29.05 DKMS files...
Building for 5.3.0-62-generic
Building for architecture x86_64
Building initial module for 5.3.0-62-generic
Secure Boot not enabled on this system.
Done.

nvidia:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.3.0-62-generic/updates/dkms/

nvidia-modeset.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.3.0-62-generic/updates/dkms/

nvidia-drm.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.3.0-62-generic/updates/dkms/

nvidia-peermem.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.3.0-62-generic/updates/dkms/

nvidia-uvm.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.3.0-62-generic/updates/dkms/

depmod...

DKMS: install completed.
Setting up cuda-libraries-10-2 (10.2.89-1) ...
Setting up cuda-memcheck-10-2 (10.2.89-1) ...
Setting up nvidia-compute-utils-495 (495.29.05-0ubuntu1) ...
Warning: The home dir /nonexistent you specified can't be accessed: No such file or directory
Adding system user `nvidia-persistenced' (UID 126) ...
Adding new group `nvidia-persistenced' (GID 132) ...
Adding new user `nvidia-persistenced' (UID 126) with group `nvidia-persistenced' ...
Not creating home directory `/nonexistent'.
Created symlink /etc/systemd/system/multi-user.target.wants/nvidia-persistenced.service → /lib/systemd/system/nvidia-persistenced.service.
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 cuda-nvgraph-dev-10-2 (10.2.89-1) ...
Setting up cuda-nvcc-10-2 (10.2.89-1) ...
Setting up libnvidia-decode-495:amd64 (495.29.05-0ubuntu1) ...
Setting up cuda-nvprof-10-2 (10.2.89-1) ...
Setting up cuda-cusparse-dev-10-2 (10.2.89-1) ...
Setting up cuda-compiler-10-2 (10.2.89-1) ...
Setting up xserver-xorg-video-nvidia-495 (495.29.05-0ubuntu1) ...
Setting up cuda-curand-dev-10-2 (10.2.89-1) ...
Setting up cuda-cusolver-dev-10-2 (10.2.89-1) ...
Setting up cuda-nsight-compute-10-2 (10.2.89-1) ...
Setting up cuda-gdb-10-2 (10.2.89-1) ...
Setting up libnvidia-encode-495:amd64 (495.29.05-0ubuntu1) ...
Setting up cuda-cudart-dev-10-2 (10.2.89-1) ...
Setting up nvidia-driver-495 (495.29.05-0ubuntu1) ...
Setting up cuda-libraries-dev-10-2 (10.2.89-1) ...
Setting up cuda-visual-tools-10-2 (10.2.89-1) ...
Setting up cuda-samples-10-2 (10.2.89-1) ...
Setting up cuda-cupti-10-2 (10.2.89-1) ...
Setting up cuda-drivers-495 (495.29.05-1) ...
Setting up cuda-documentation-10-2 (10.2.89-1) ...
Setting up cuda-drivers (495.29.05-1) ...
Setting up cuda-cupti-dev-10-2 (10.2.89-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 cuda-tools-10-2 (10.2.89-1) ...
Setting up cuda-demo-suite-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) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ...
Processing triggers for libc-bin (2.27-3ubuntu1.4) ...
Processing triggers for initramfs-tools (0.130ubuntu3.13) ...
update-initramfs: Generating /boot/initrd.img-5.3.0-62-generic

cuda-10-2とnvidia driver 495がインストールされた. driverは460を入れたかったので,495をsudo apt remove --purge *nviida*で消去してから sudo apt install nvidia-driver-460でdriverを再インストールした.(先にインストールしておけばよかったのだが.)

shmpwk commented 2 years ago
torch.multiprocessing.set_sharing_strategy('file_system')   

をしたら次のエラー

torch_shm_manager: error while loading shared libraries: libcudart.so.10.1: cannot open shared object file: No such file or directory
torch_shm_manager: error while loading shared libraries: libcudart.so.10.1: cannot open shared object file: No such file or directory
torch_shm_managertorch_shm_manager: : error while loading shared librarieserror while loading shared libraries: : libcudart.so.10.1libcudart.so.10.1: : cannot open shared object filecannot open shared object file: : No such file or directoryNo such file or directory

確かにlibcudart系は何もインストールしていなかったが,10.2ではなく10.1がほしいのか?

shmpwk commented 2 years ago

https://github.com/tensorflow/tensorflow/issues/34759#issuecomment-560529273

As printed in the stack trace Could not load dynamic library 'libcudart.so.10.1'. You have to roll back to cuda 10.1 in order to use TF 2.1 binary. For using cuda 10.2 you have to install TF from sources. Also, tensorflow pip package (TF 2.1) now includes GPU support by default (same as tensorflow-gpu) for both Linux and Windows.

$ pip list |grep tensorflow
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
tensorflow (0.10.0)
You are using pip version 9.0.3, however version 21.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

$ pip3 list |grep tensorflow
tensorflow-estimator            2.4.0              
tensorflow-gpu                  2.4.0              
WARNING: You are using pip version 19.3.1; however, version 21.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

tensorflow, cuda相性表

shmpwk commented 2 years ago
$ pip install --user --upgrade pip==19.0
$ pip install --user Keras==2.1.6
$ pip install --user tensorflow==2.1.0
$ sudo apt remove --purge cuda*
$ sudo apt update
$ sudo apt upgrade
$ sudo apt install cuda-10-1

FYI,

$ sudo apt install cuda-10-1
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  gimp-data libbabl-0.1-0 libdca0 libde265-0 libgegl-0.3-0 libgimp2.0 libgssdp-1.0-3 libgupnp-1.0-4 libgupnp-igd-1.0-4 libkate1 liblilv-0-0 libmms0 libnice10 libnvidia-common-460 libofa0 libserd-0-0
  libsord-0-0 libsoundtouch1 libspandsp2 libsratom-0-0 libsrtp2-1 libvo-aacenc0 libwildmidi-config libwildmidi2 libxatracker2 libzbar0 python3-pyaudio qml-module-qtgraphicaleffects qml-module-qtquick-controls
  qml-module-qtquick-dialogs qml-module-qtquick-layouts qml-module-qtquick-privatewidgets qml-module-qtquick-window2 qml-module-qtquick2 shim xserver-xorg-video-amdgpu xserver-xorg-video-ati
  xserver-xorg-video-fbdev xserver-xorg-video-qxl xserver-xorg-video-radeon xserver-xorg-video-vesa xserver-xorg-video-vmware
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  cuda-command-line-tools-10-1 cuda-compiler-10-1 cuda-cudart-10-1 cuda-cudart-dev-10-1 cuda-cufft-10-1 cuda-cufft-dev-10-1 cuda-cuobjdump-10-1 cuda-cupti-10-1 cuda-curand-10-1 cuda-curand-dev-10-1
  cuda-cusolver-10-1 cuda-cusolver-dev-10-1 cuda-cusparse-10-1 cuda-cusparse-dev-10-1 cuda-demo-suite-10-1 cuda-documentation-10-1 cuda-driver-dev-10-1 cuda-drivers cuda-drivers-495 cuda-gdb-10-1
  cuda-gpu-library-advisor-10-1 cuda-libraries-10-1 cuda-libraries-dev-10-1 cuda-license-10-1 cuda-memcheck-10-1 cuda-misc-headers-10-1 cuda-npp-10-1 cuda-npp-dev-10-1 cuda-nsight-10-1 cuda-nsight-compute-10-1
  cuda-nsight-systems-10-1 cuda-nvcc-10-1 cuda-nvdisasm-10-1 cuda-nvgraph-10-1 cuda-nvgraph-dev-10-1 cuda-nvjpeg-10-1 cuda-nvjpeg-dev-10-1 cuda-nvml-dev-10-1 cuda-nvprof-10-1 cuda-nvprune-10-1 cuda-nvrtc-10-1
  cuda-nvrtc-dev-10-1 cuda-nvtx-10-1 cuda-nvvp-10-1 cuda-runtime-10-1 cuda-samples-10-1 cuda-sanitizer-api-10-1 cuda-toolkit-10-1 cuda-tools-10-1 cuda-visual-tools-10-1 libnvidia-cfg1-495 libnvidia-common-495
  libnvidia-compute-495 libnvidia-decode-495 libnvidia-encode-495 libnvidia-extra-495 libnvidia-fbc1-495 libnvidia-gl-495 nvidia-compute-utils-495 nvidia-dkms-495 nvidia-driver-495 nvidia-kernel-common-495
  nvidia-kernel-source-495 nvidia-modprobe nvidia-utils-495 xserver-xorg-video-nvidia-495
Recommended packages:
  libnvidia-compute-495:i386 libnvidia-decode-495:i386 libnvidia-encode-495:i386 libnvidia-fbc1-495:i386 libnvidia-gl-495:i386
The following packages will be REMOVED:
  libnvidia-cfg1-460 libnvidia-compute-460 libnvidia-decode-460 libnvidia-encode-460 libnvidia-extra-460 libnvidia-fbc1-460 libnvidia-gl-460 libnvidia-ifr1-460 nvidia-compute-utils-460 nvidia-dkms-460
  nvidia-driver-460 nvidia-kernel-common-460 nvidia-kernel-source-460 nvidia-utils-460 xserver-xorg-video-nvidia-460
The following NEW packages will be installed:
  cuda-10-1 cuda-command-line-tools-10-1 cuda-compiler-10-1 cuda-cudart-10-1 cuda-cudart-dev-10-1 cuda-cufft-10-1 cuda-cufft-dev-10-1 cuda-cuobjdump-10-1 cuda-cupti-10-1 cuda-curand-10-1 cuda-curand-dev-10-1
  cuda-cusolver-10-1 cuda-cusolver-dev-10-1 cuda-cusparse-10-1 cuda-cusparse-dev-10-1 cuda-demo-suite-10-1 cuda-documentation-10-1 cuda-driver-dev-10-1 cuda-drivers cuda-drivers-495 cuda-gdb-10-1
  cuda-gpu-library-advisor-10-1 cuda-libraries-10-1 cuda-libraries-dev-10-1 cuda-license-10-1 cuda-memcheck-10-1 cuda-misc-headers-10-1 cuda-npp-10-1 cuda-npp-dev-10-1 cuda-nsight-10-1 cuda-nsight-compute-10-1
  cuda-nsight-systems-10-1 cuda-nvcc-10-1 cuda-nvdisasm-10-1 cuda-nvgraph-10-1 cuda-nvgraph-dev-10-1 cuda-nvjpeg-10-1 cuda-nvjpeg-dev-10-1 cuda-nvml-dev-10-1 cuda-nvprof-10-1 cuda-nvprune-10-1 cuda-nvrtc-10-1
  cuda-nvrtc-dev-10-1 cuda-nvtx-10-1 cuda-nvvp-10-1 cuda-runtime-10-1 cuda-samples-10-1 cuda-sanitizer-api-10-1 cuda-toolkit-10-1 cuda-tools-10-1 cuda-visual-tools-10-1 libnvidia-cfg1-495 libnvidia-common-495
  libnvidia-compute-495 libnvidia-decode-495 libnvidia-encode-495 libnvidia-extra-495 libnvidia-fbc1-495 libnvidia-gl-495 nvidia-compute-utils-495 nvidia-dkms-495 nvidia-driver-495 nvidia-kernel-common-495
  nvidia-kernel-source-495 nvidia-modprobe nvidia-utils-495 xserver-xorg-video-nvidia-495
0 upgraded, 67 newly installed, 15 to remove and 3 not upgraded.
Need to get 1,541 MB of archives.
After this operation, 3,289 MB of additional disk space will be used.
ii  libnvidia-cfg1-495:amd64                        495.29.05-0ubuntu1                              amd64        NVIDIA binary OpenGL/GLX configuration library
ii  libnvidia-common-495                            495.29.05-0ubuntu1                              all          Shared files used by the NVIDIA libraries
ii  libnvidia-compute-495:amd64                     495.29.05-0ubuntu1                              amd64        NVIDIA libcompute package
ii  libnvidia-decode-495:amd64                      495.29.05-0ubuntu1                              amd64        NVIDIA Video Decoding runtime libraries
ii  libnvidia-encode-495:amd64                      495.29.05-0ubuntu1                              amd64        NVENC Video Encoding runtime library
ii  libnvidia-extra-495:amd64                       495.29.05-0ubuntu1                              amd64        Extra libraries for the NVIDIA driver
ii  libnvidia-fbc1-495:amd64                        495.29.05-0ubuntu1                              amd64        NVIDIA OpenGL-based Framebuffer Capture runtime library
ii  libnvidia-gl-495:amd64                          495.29.05-0ubuntu1                              amd64        NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii  nvidia-compute-utils-495                        495.29.05-0ubuntu1                              amd64        NVIDIA compute utilities
ii  nvidia-dkms-495                                 495.29.05-0ubuntu1                              amd64        NVIDIA DKMS package
ii  nvidia-driver-495                               495.29.05-0ubuntu1                              amd64        NVIDIA driver metapackage
ii  nvidia-kernel-common-495                        495.29.05-0ubuntu1                              amd64        Shared files used with the kernel module
ii  nvidia-kernel-source-495                        495.29.05-0ubuntu1                              amd64        NVIDIA kernel source package
ii  nvidia-modprobe                                 495.29.05-0ubuntu1                              amd64        Load the NVIDIA kernel driver and create device files
ii  nvidia-prime                                    0.8.16~0.18.04.1                                all          Tools to enable NVIDIA's Prime
ii  nvidia-settings                                 495.29.05-0ubuntu1                              amd64        Tool for configuring the NVIDIA graphics driver
ii  nvidia-utils-495                                495.29.05-0ubuntu1                              amd64        NVIDIA driver support binaries
ii  xserver-xorg-video-nvidia-495                   495.29.05-0ubuntu1                              amd64        NVIDIA binary Xorg driver
$ dpkg -l |grep cuda
ii  cuda-10-1                                       10.1.243-1                                      amd64        CUDA 10.1 meta-package
ii  cuda-command-line-tools-10-1                    10.1.243-1                                      amd64        CUDA command-line tools
ii  cuda-compiler-10-1                              10.1.243-1                                      amd64        CUDA compiler
ii  cuda-cudart-10-1                                10.1.243-1                                      amd64        CUDA Runtime native Libraries
ii  cuda-cudart-dev-10-1                            10.1.243-1                                      amd64        CUDA Runtime native dev links, headers
ii  cuda-cufft-10-1                                 10.1.243-1                                      amd64        CUFFT native runtime libraries
ii  cuda-cufft-dev-10-1                             10.1.243-1                                      amd64        CUFFT native dev links, headers
ii  cuda-cuobjdump-10-1                             10.1.243-1                                      amd64        CUDA cuobjdump
ii  cuda-cupti-10-1                                 10.1.243-1                                      amd64        CUDA profiling tools interface.
ii  cuda-curand-10-1                                10.1.243-1                                      amd64        CURAND native runtime libraries
ii  cuda-curand-dev-10-1                            10.1.243-1                                      amd64        CURAND native dev links, headers
ii  cuda-cusolver-10-1                              10.1.243-1                                      amd64        CUDA solver native runtime libraries
ii  cuda-cusolver-dev-10-1                          10.1.243-1                                      amd64        CUDA solver native dev links, headers
ii  cuda-cusparse-10-1                              10.1.243-1                                      amd64        CUSPARSE native runtime libraries
ii  cuda-cusparse-dev-10-1                          10.1.243-1                                      amd64        CUSPARSE native dev links, headers
ii  cuda-demo-suite-10-1                            10.1.243-1                                      amd64        Demo suite for CUDA
ii  cuda-documentation-10-1                         10.1.243-1                                      amd64        CUDA documentation
ii  cuda-driver-dev-10-1                            10.1.243-1                                      amd64        CUDA Driver native dev stub library
ii  cuda-drivers                                    495.29.05-1                                     amd64        CUDA Driver meta-package, branch-agnostic
ii  cuda-drivers-495                                495.29.05-1                                     amd64        CUDA Driver meta-package, branch-specific
ii  cuda-gdb-10-1                                   10.1.243-1                                      amd64        CUDA-GDB
ii  cuda-gpu-library-advisor-10-1                   10.1.243-1                                      amd64        CUDA GPU Library Advisor.
ii  cuda-libraries-10-1                             10.1.243-1                                      amd64        CUDA Libraries 10.1 meta-package
ii  cuda-libraries-dev-10-1                         10.1.243-1                                      amd64        CUDA Libraries 10.1 development meta-package
ii  cuda-license-10-1                               10.1.243-1                                      amd64        CUDA licenses
ii  cuda-memcheck-10-1                              10.1.243-1                                      amd64        CUDA-MEMCHECK
ii  cuda-misc-headers-10-1                          10.1.243-1                                      amd64        CUDA miscellaneous headers
ii  cuda-npp-10-1                                   10.1.243-1                                      amd64        NPP native runtime libraries
ii  cuda-npp-dev-10-1                               10.1.243-1                                      amd64        NPP native dev links, headers
ii  cuda-nsight-10-1                                10.1.243-1                                      amd64        CUDA nsight
ii  cuda-nsight-compute-10-1                        10.1.243-1                                      amd64        NVIDIA Nsight Compute
ii  cuda-nsight-systems-10-1                        10.1.243-1                                      amd64        NVIDIA Nsight Systems
ii  cuda-nvcc-10-1                                  10.1.243-1                                      amd64        CUDA nvcc
ii  cuda-nvdisasm-10-1                              10.1.243-1                                      amd64        CUDA disassembler
ii  cuda-nvgraph-10-1                               10.1.243-1                                      amd64        NVGRAPH native runtime libraries
ii  cuda-nvgraph-dev-10-1                           10.1.243-1                                      amd64        NVGRAPH native dev links, headers
ii  cuda-nvjpeg-10-1                                10.1.243-1                                      amd64        NVJPEG native runtime libraries
ii  cuda-nvjpeg-dev-10-1                            10.1.243-1                                      amd64        NVJPEG native dev links, headers
ii  cuda-nvml-dev-10-1                              10.1.243-1                                      amd64        NVML native dev links, headers
ii  cuda-nvprof-10-1                                10.1.243-1                                      amd64        CUDA Profiler tools
ii  cuda-nvprune-10-1                               10.1.243-1                                      amd64        CUDA nvprune
ii  cuda-nvrtc-10-1                                 10.1.243-1                                      amd64        NVRTC native runtime libraries
ii  cuda-nvrtc-dev-10-1                             10.1.243-1                                      amd64        NVRTC native dev links, headers
ii  cuda-nvtx-10-1                                  10.1.243-1                                      amd64        NVIDIA Tools Extension
ii  cuda-nvvp-10-1                                  10.1.243-1                                      amd64        CUDA nvvp
ii  cuda-runtime-10-1                               10.1.243-1                                      amd64        CUDA Runtime 10.1 meta-package
ii  cuda-samples-10-1                               10.1.243-1                                      amd64        CUDA example applications
ii  cuda-sanitizer-api-10-1                         10.1.243-1                                      amd64        CUDA Sanitizer API
ii  cuda-toolkit-10-1                               10.1.243-1                                      amd64        CUDA Toolkit 10.1 meta-package
ii  cuda-tools-10-1                                 10.1.243-1                                      amd64        CUDA Tools meta-package
ii  cuda-visual-tools-10-1                          10.1.243-1                                      amd64        CUDA visual tools
shmpwk commented 2 years ago
$ nvidia-smi
Wed Dec  1 19:36:10 2021       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 495.29.05    Driver Version: 495.29.05    CUDA Version: 11.5     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ...  On   | 00000000:0D:00.0  On |                  N/A |
| 30%   32C    P8     8W / 250W |    272MiB / 11011MiB |     11%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      1389      G   /usr/lib/xorg/Xorg                163MiB |
|    0   N/A  N/A      2389      G   /usr/bin/gnome-shell               50MiB |
|    0   N/A  N/A      2959      G   ...AAAAAAAAA= --shared-files       55MiB |
+-----------------------------------------------------------------------------+
shmpwk commented 2 years ago

install cudnn 7.6.5 https://drive.google.com/drive/u/0/folders/1CObKBDL3AqbV2QDpTCvJ56AaGGcHaffj

cz

バージョン | Python バージョン | コンパイラ | ビルドツール | cuDNN | CUDA
tensorflow-2.1.0 | 2.7、3.5~3.7 | GCC 7.3.1 | Bazel 0.27.1 | 7.6 | 10.1

also 7.6.5 is the major version by ggr it.

shmpwk commented 2 years ago
$ pip3 list |grep tensorflow
tensorflow-estimator            2.4.0              
tensorflow-gpu                  2.4.0              
WARNING: You are using pip version 19.3.1; however, version 21.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

$ pip list |grep tensorflow
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
tensorflow                         2.1.0       
tensorflow-estimator               2.1.0       
tensorflow-gpu                     2.1.0       
You are using pip version 19.0, however version 21.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

python2,3共に同じtensorflow versionにすべき,なぜならどちらも同じversionのcudaを使うから. よって,python3系も2.1.0のtensorflow各種をインストール.

$ pip3 install --user tensorflow==2.1.0 tensorflow-estimator==2.1.0 tensorflow-gpu==2.1.0

Still error but not related now so ignore

ERROR: pytorch-lightning 1.4.5 has requirement tensorboard>=2.2.0, but you'll have tensorboard 2.1.1 which is incompatible.

Finally get

$ pip3 list |grep tensorflow
tensorflow                      2.1.0              
tensorflow-estimator            2.1.0              
tensorflow-gpu                  2.1.0