Installing CUDA 7.0 but get CUDA 7.5?

I am installing 7.0 for tensor flow (it does not support 7.5 yet) in Ubuntu 14.04 LTS.

I did both

  1. downloading from https://developer.nvidia.com/cuda-toolkit-70 both the network/local deb
  2. wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/cuda-repo-ubuntu1404_7.0-28_amd64.debsudo dpkg -i cuda-repo-ubuntu1404_7.0-28_amd64.deb

After the following,
sudo dpkg -i cuda-repo-ubuntu1404_7.0-28_amd64.deb
sudo apt-get update
sudo apt-get -y install cuda

It became 7.5! What went wrong?

Did you start with a clean load of the OS? Maybe you have 7.5 already installed on your machine.

Yes. In fact, I just installed Ubuntu 14.04 LTS from scratch on a new computer and an old one. Both had pre-existing win 8.1. I tried both ways on these two machines and got the same 7.5 version. That is why I am totally confused.

If the network repo is enabled, installing cuda will install the latest cuda toolkit by design. Installing cuda-7-0 will install cuda 7.0, if it’s available in enabled repositories (local or network).

You can read more about RPM/Deb meta packages at:
http://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#package-manager-metas.