網頁

2019年1月15日 星期二

解決ubuntu18.04安裝新的NVIDIA顯卡驅動會卡登

ubuntu18.04更新nvidia-390以外的驅動會造成卡登,解決方式如下:



如果之前是用 apt-get 安裝驅動程式
$ sudo apt-get purge nvidia*
$ sudo apt-get purge "nvidia*" (zsh)
$ sudo apt-get autoremove
$ sudo apt-get remove --purge nvidia*

如果是用dpkg 安裝驅動程式
$ 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

否則會顯示
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.

1 則留言:

  1. thanks for saving my ass on installing 440 version on ubuntu 18.04.

    回覆刪除