1. Uninstall the drivers NVIDIA
sudo apt-get --purge remove nvidia*
sudo apt autoremove
2. Installation (Reference https://blog.csdn.net/qq_32408773/article/details/84111244)
View video card model lspci | grep -i nvidia
View computer-supported version of ubuntu-drivers devices
Disable nouveau: sudo gedit /etc/modprobe.d/blacklist.conf
At the end of the text added: blacklist nouveau
carried out sudo update-initramfs -u
Then restart reboot
After the restart execution lsmod | grep nouveau
If there is no output on behalf of disabled nouveau effect.
Query and download the appropriate version of the driver: the NVIDIA official website input card information, the applicable version of the query:
Select results and download the newer version (note 64 and 32), and log file storage address.
Close X-Window
, very simple: sudo service lightdm stop
and then switch to tty1 console: Ctrl+Alt+F1
you can
Executable permissions to increase drivers: the sudo the chmod A + X NVIDIA-Linux-x86_64-390.48.run
installation: ./NVIDIA-Linux-x86_64-390.48.run -NO2-OpenGL-Files the sudo
latter parameter does not install the OPENGL, this is very important! The wrong choice could lead to cycle login!
Then all the way to determine the installation is complete.
Verify that the installation was successful:nvidia-smi
:sudo service lightdm start
打开X-Window
Ctrl+Alt+F7
回到图形界面