When I installing CUDA 9.0, but installed was CUDA 9.2.

I want to install CUDA 9.0 to Ubuntu 16.04.But installed was CUDA 9.2. The same goes for installing CUDA 8.0.

cat /usr/local/cuda/version.txt

CUDA Version 9.2.88

You will get the latest version of CUDA which is 9.2

If you want to install CUDA 9.0 after a later version is out, you should do:

sudo apt-get install cuda-9-0

when using the network deb install method


Thank you for your answer.

Only one command ? Is it really that simple ?

Why couldn’t the previous method install the specified version ?

If I want to install the CUDA 8.0. The command is:

sudo apt-get install cuda-8-0


when I use this command : sudo apt-get install cuda-9-0, happen error:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package cuda-9-0

But I use this commad : sudo apt-get install cuda-8-0. It is OK !

But I need CUDA 9.0.


Please answer my question. Thank you.