Install CUDA 6.5 on clean Ubuntu 14.04

2015-02-28
#ubuntu #cuda #howto #libcheese

Recently NVIDIA added a repository for Ubuntu 12.04 and Ubuntu 14.04. Recently I hit a problem with missing dependencies for the libcheese-gtk23 and libcheese7 libraries while installing the latest CUDA 6.5 on a clean Ubuntu 14.04. A remedy for this can be found on askubuntu. So, the complete set of commands is below.

First, add the CUDA repository package:

1wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/cuda-repo-ubuntu1404_6.5-14_amd64.deb
2sudo dpkg -i cuda-repo-ubuntu1404_6.5-14_amd64.deb

Now, install CUDA:

 1sudo apt-get update && sudo apt-get upgrade
 2
 3# install nvidia driver
 4sudo apt-get install nvidia-current
 5# at this point you need to reboot computer
 6
 7# remove broken packages, beware: some GUI parts of your system will be broken or removed
 8sudo apt-get remove libcheese*
 9
10# install CUDA
11sudo apt-get install cuda
12
13# restore broken GUI parts
14sudo apt-get install ubuntu-desktop

By the way, libcheese is a library for video and photo capture, including the enumeration of capture devices.