$ sudo apt-get purge "nvidia*" (zsh)
$ sudo apt-get autoremove
$ sudo apt-get remove --purge nvidia*
$ dpkg -l 'nvidia*'
$ dpkg --remove nvidia-{Name}
如果是用官方下載的run
$ sudo /usr/bin/nvidia-uninstall
$ sudo apt-get install autoremove --purge nvidia*
$ sudo /etc/init.d/gdm3 stop or
$ sudo service gdm3 stop
$ reboot
如果是用官方下載的run
$ sudo /usr/bin/nvidia-uninstall
$ sudo apt-get install autoremove --purge nvidia*
$ sudo /etc/init.d/gdm3 stop or
$ sudo service gdm3 stop
$ reboot
否則會顯示
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.
$ sudo service gdm3 restart
$ sudo add-apt-repository ppa:graphics-drivers/ppa
$ sudo apt-get update
$ ubuntu-drivers devices
$ ubuntu-drivers devices
$ sudo apt-get install nvidia-390
參考
https://askubuntu.com/questions/1030060/freeze-after-login-ubuntu-18-04
https://tutorials.technology/tutorials/85-How-to-remove-Nouveau-kernel-driver-Nvidia-install-error.html
https://forums.fast.ai/t/local-setup-for-ubuntu-18-04-with-nvidia-gpu-1080/16694/2
https://wiki.ubuntu.com.cn/NVIDIA
https://zhuanlan.zhihu.com/p/49607213
https://blog.csdn.net/Ansel_Lee/article/details/79552834
https://tutorials.technology/tutorials/85-How-to-remove-Nouveau-kernel-driver-Nvidia-install-error.html
https://forums.fast.ai/t/local-setup-for-ubuntu-18-04-with-nvidia-gpu-1080/16694/2
https://wiki.ubuntu.com.cn/NVIDIA
https://zhuanlan.zhihu.com/p/49607213
https://blog.csdn.net/Ansel_Lee/article/details/79552834
thanks for saving my ass on installing 440 version on ubuntu 18.04.
回覆刪除