[SOLVED, solution included] How to install 9.2 patch on ubuntu with deb?

I’m installing 9.2 on Ubuntu 17.10 (thanks, NVIDIA, for supporting so many Linux distros!) and downloaded cuda-repo-ubuntu1710-9-2-local_9.2.148-1_amd64.deb, then did the instructions in Section of the Quick Start guide:

sudo dpkg --install cuda-repo-<distro>-<version>.<architecture>.deb sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos///7fa2af80.pub
sudo apt-get update sudo apt-get install cuda

I also downloaded the patch file cuda-repo-ubuntu1710-9-2-148-local-patch-1_1.0-1_amd64.deb – what is the procedure for installing this patch? I don’t see it in the instructions.

BTW, this deb file isn’t in the MD5SUM list at https://developer.download.nvidia.com/compute/cuda/9.2/Prod/docs/sidebar/md5sum.txt

This may help:


The instructions said:

sudo dpkg -i cuda-repo-ubuntu1604-8-0-local-cublas-performance-update_8.0.61-1_amd64.deb
sudo apt-get update  
sudo apt-get install cuda

So I substituted the name of the patch file:

$ sudo dpkg -i cuda-repo-ubuntu1710-9-2-148-local-patch-1_1.0-1_amd64.deb
(Reading database … 342907 files and directories currently installed.)
Preparing to unpack cuda-repo-ubuntu1710-9-2-148-local-patch-1_1.0-1_amd64.deb …
Unpacking cuda-repo-ubuntu1710-9-2-148-local-patch-1 (1.0-1) over (1.0-1) …
Setting up cuda-repo-ubuntu1710-9-2-148-local-patch-1 (1.0-1) …

$ sudo apt-get update
Get:1 file:/var/cuda-repo-9-2-148-local-patch-1 InRelease
Ign:1 file:/var/cuda-repo-9-2-148-local-patch-1 InRelease
Get:2 file:/var/cuda-repo-9-2-local InRelease
Ign:2 file:/var/cuda-repo-9-2-local InRelease
Get:3 file:/var/cuda-repo-9-2-148-local-patch-1 Release [574 B]
Get:4 file:/var/cuda-repo-9-2-local Release [574 B]
Get:3 file:/var/cuda-repo-9-2-148-local-patch-1 Release [574 B]
Get:4 file:/var/cuda-repo-9-2-local Release [574 B]
Hit:7 http://us.archive.ubuntu.com/ubuntu bionic InRelease
Hit:8 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu bionic InRelease
Get:9 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:10 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
Get:11 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Fetched 247 kB in 2s (159 kB/s)
Reading package lists… Done

$ sudo apt-get install cuda
Reading package lists… Done
Building dependency tree
Reading state information… Done
cuda is already the newest version (9.2.148-1).
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.

The response to the third command (the apt-get install) seems to indicate that nothing happened.

OK, I scrolled further down and found the suggestion to try “sudo apt-get upgrade cuda” (upgrade instead of install) and that seemed to do the trick – although it seemed to upgrade other packages too. So it seems to ignore the cuda arg.

So I’d say the patch command sequence is:

sudo dpkg -i cuda-repo-ubuntu1604-8-0-local-cublas-performance-update_8.0.61-1_amd64.deb # or whatever your patch deb is...
sudo apt-get update
sudo apt-get upgrade

BTW, the “Accept as answer” buttons don’t show up anymore, so how do I mark this as done? OK, I’ll just edit the title then.

Can one just do

sudo dpkg -i .deb
sudo dpkg -i .deb
sudo dpkg -i .deb

before doing the other steps in the installation? That is, dpkg all of the files (main installation followed by patches) and then do a single install command?

Anyway, it would be nice if the CUDA installation guide had this information.