[Ubuntu] solving An NVIDIA kernel module nvidia appears to already be loaded in your kernel

less than 1 minute read

When I tried to install a new nvidia-driver, the error message "An NVIDIA kernel module ‘nvidia’ appears to already be loaded in your kernel", appears.

I’ve solved it by first finding the process using nvidia,

$ sudo lsof -n -w /dev/nvidia*

And killed all the process using it.