This question already has an answer here:
I have an Ubuntu 17.10 64 bit with the default kernel.
I have update it right now and my NVIDIA Driver version is 384.90.
I want to use CUDA 9.1 but it needs NVIDIA Driver version r387. Doing this:
sudo ./cuda_9.1.85_387.26_linux.run -silent -driver
I can install that driver. But I get the following error:
ERROR: An NVIDIA kernel module 'nvidia-drm' appears to already be loaded in
your kernel. This may be because it is in use (for example, by an X server, a CUDA program, or the NVIDIA Persistence Daemon), but this may also happen if your kernel was configured without support for module unloading. Please be sure to exit any programs that may be using the GPU(s) before attempting to upgrade your driver. If no GPU-based programs are running, you know that your kernel supports module unloading, and you still receive this message, then an error may have occured that has corrupted an NVIDIA kernel module's usage count, for which the simplest remedy is to reboot your computer.
I have move it to text mode running the command
sudo init 4 but I get the same error.
I have the default kernel and maybe it doesn't support module unloading.
How can I know if kernel supports module unloading? or How can I enable it?