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

Does anybody know if it's possible to automatically reinstall the nVidia CUDA driver on kernel updates? As of know I need to switch to a console and run the driver installer manually on kernel updates, so it would be great if it was possible to keep it in sync in the same fashion as the regular proprietary drivers.

I guess I could hack together a script that checks if the module is loaded and runs the installer if not, but is there a more elegant solution?

share|improve this question
I don't really know what I'm talking about, but I have a hunch your solution will be to leverage DKMS to automatically reinstall the driver when necessary. This blog post should point you in the right direction. – ændrük May 12 '11 at 22:15
curious, what is the cuda driver for linux. I tried to look it up, but it looks like cuda is just part of the latest drivers – user1974 May 18 '11 at 19:15
up vote 2 down vote accepted

I haven't run nvidia drivers from their site for a while, but when I did this helped Automatically update manually installed NVidia drivers after kernel updates

Don't know if it still works.

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.