Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My laptop has a Ubuntu 13.10 installed and has a Nvidia 630M graphics card. I have been trying to install CUDA. I installed it using:

sudo apt-get install nvidia-cuda-dev nvidia-cuda-doc nvidia-cuda-gdb nvidia-cuda-toolkit  

What I want to know is what is the difference between installing it using the above command and the procedure given at the NVIDIA page here

share|improve this question
does this command work for you? i'm getting dependency error when running this. – Ohad Cohen Nov 29 '13 at 0:22
yes, it worked fine for me. – user2067300 Nov 30 '13 at 4:44

Mostly the version - Ubuntu's repository is a bit behind, as it prefers stability over cutting edge.

share|improve this answer

It is recommended to install from 'apt-get'. Because .run file is intended to be an installer for all linux distributions, not only Ubuntu. The 'apt-get' version has been optimized so that it is compatible with Ubuntu distribution. The package may be, as explicitly stated by VincentSC, unstable and buggy.

share|improve this answer

Realise this is a bit old now, but wanted to share my recent experience with Ubuntu 12.04 since it's relevant.

Using the package manager (i.e. running the commands listed in the OP), you are required to install package dependencies as usual. These include the nvidia graphics drivers. If you have already installed drivers using a .run file downloaded from nvidia, they will be overwritten.

Using the .run file to install cuda, you are given the option to install only cuda, leaving your pre-existing drivers intact.

For some reason, on my system the nvidia-331 module listed as a cuda dependency is broken. Installing it leaves my system unable to boot. Therefore, the option to install only cuda was very useful, because it meant I could source my own drivers from nvidia.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.