CUDA driver on Ubuntu

When you would like to use CUDA on Ubuntu with the latest driver, kernel might not import the driver if Ubuntu update contains kernel modules.

It may help to resolve this situation to

remove /lib/modules/KERNEL-VER-REV-TYPE/updates/dkms/nvidia.ko

and reload the latest driver by

rmmod nvidia; depmod -a; modprobe nvidia

The latest driver must be rebuild for the kernel of course.