https://unix.stackexchange.com/questions/440840/how-to-unload-kernel-module-nvidia-drm
https://arabelatso.github.io/2020/01/08/Install%20CUDA%20Toolkit%2010.2%20on%20Ubuntu%2018.04.3/
1.
After change to a text console (pressing Ctrl+Alt+F2) and logging in as root, use the following command to disable the graphical target, which is what keeps the display manager running:
# systemctl isolate multi-user.target
At this point, I'd expect you'd be able to unload the Nvidia drivers using modprobe -r
(or rmmod
directly):
# modprobe -r nvidia-drm
2. run the .run file
3. reboot