How to install CUDA-6.5 on Ubuntu 14.04?
Solution 1:
Same error message with me, but none of the above answers helped in my case (Ubuntu 14.10). Therefore, first dissect the error message. It says:
The following packages have unmet dependencies:
cuda : Depends: cuda-6-5 (= 6.5-14) but it is not going to be installed.
So cuda
has a dependency cuda-6-5
, which can not be installed. Why? Let's check:
sudo apt-get install cuda-6-5
produced a similar message to the original one for me saying something like:
The following packages have unmet dependencies:
cuda-6-5 : Depends: libcudart6.0 (=....) but it is not going to be installed.
So libcudart6.0
is the problem. Let's check why: sudo apt-get install libcudart6.0
results in:
The following packages have unmet dependencies:
libcudart6.0 : Depends: nvidia-340 (=....) but it is not going to be installed.
So this is the problem: The installed NVIDIA driver (and also those available in the
repository) are not recent enough. Adding the xorg-edgers
PPA helps:
sudo add-apt-repository ppa:xorg-edgers/ppa
sudo apt-get update
Running the original sudo apt-get install cuda
now works.
(This may not be a problem, if one runs the *.run
file from the NVIDIA developer website.)
Solution 2:
From the terminal run:
sudo apt-get remove nvidia-cuda-* # remove old nvidia-cuda packages
sudo dpkg -i cuda-repo-ubuntu1404_6.5-14_amd64.deb
sudo apt-get update
sudo apt-get install cuda
Some actions must be taken after installing the CUDA Toolkit and Driver before they can be completely used. Perform the post-installation actions.
Reference: NVIDIA CUDA Getting Started Guide for Linux v6.5