I tried to install a CUDA 5.5, following the steps on the Nvidia website, using the deb file for Ubuntu 12.10 (the latest version I could find on Nvidia website), but the installer fail to begin, telling me there are some dependency issues:
The following packages have unmet dependencies.
cuda : Depends: cuda-5-5 (= 5.5-22) but it is not going to be installed.
E: Unable to correct problems, you have held broken packages.
Best Answer
I have successfully installed CUDA-5.5.22 on Ubuntu 13.10 64-bit.
My GPU is GeForce GTX 650Ti. Below are the steps of my installation:
Step 1. Purge the existing NVIDIA driver installations. I had to install the latest NVIDIA driver (331.20) for CUDA-5.5 to work. [I later found that you need at least v319.37 for CUDA-5.5.22 - the toolkit that supports Ubuntu 12.10]
Step 2. Download the latest NVIDIA driver from here: http://www.nvidia.com/Download/index.aspx, and the CUDA toolkit from here: https://developer.nvidia.com/cuda-downloads [I download the
.run
file for 64-bit Ubuntu 12.10]Step 3. Create a blacklist for existing video drivers in
/etc/modprobe.d
. I created a file named/etc/modprobe.d/blacklist-file-drivers.conf
with the following content:Step 4. Install the dependencies. [Note: CUDA-5.5.22 needs gcc-v4.7.2 or below for compilation. If you install
gcc-4.7
, then v4.7.3 is pulled from the repositories, and you cannot install the toolkit. Hence, I usedgcc-4.6
]Step 5. Configure your gcc for alternatives. You will need latest gcc for NVIDIA driver and gcc-4.6 for CUDA toolkit. [I have gcc-4.8 as the latest. You have to change accordingly]
Step 6. Prequisites done. Reboot and drop into a text console (
Ctrl+Alt+F1
). Kill your display manager. For un-tweaked Ubuntu 13.10, it islightdm
Step 7. Install NVIDIA driver. Navigate to your download directory, and choose your latest gcc. [Note: Do not copy-paste the following code. Change the name of your driver file accordingly]
Follow the text instructions. Initially, it would give warnings about unsupported distribution. Ignore and continue.
Step 8. Install CUDA toolkit. [Note: Do not copy-paste the following code. Change the name of your toolkit file accordingly]
Follow text instruction. Do NOT install the CUDA driver that comes with the toolkit.
Step 9. Add the binaries and lib files to your path. Reboot.
Step 10. Done! You can
make
the sample files now. Enjoy your CUDA.