For my Ubuntu 14.10, I use this command after an update of the kernel:
sudo apt-get install nvidia-331 nvidia-331-uvm --reinstall
For my Ubuntu 14.10, I use this command after an update of the kernel:
sudo apt-get install nvidia-331 nvidia-331-uvm --reinstall