download
https://www.nvidia.com/Download/index.aspx
Remove original NVIDIA driver
sudo apt-get remove –purge nvidia*
disable nouveau
By default, Ubuntu uses the open source nouveau driver as the driver for Nvidia graphics cards, which needs to be disabled
Open the edit configuration file:
sudo vim /etc/modprobe.d/blacklist.conf
Add in the last line:
blacklist nouveau
This item is used to disable the nouveau driver, and there is no need to change it back later.
Since nouveau is built in the kernel, you need to execute the following command to take effect:
sudo update-initramfs -u
Restart
reboot
After restarting, you can see whether nouveau is running:
lsmod | grep nouveau
There is no output indicating that the disable is in effect.
Add executable permissions to the driver file:
sudo chmod a+x NVIDIA-Linux-x86_64-460.32.03.run
Install:
sudo sh ./NVIDIA-Linux-x86_64-460.32.03.run –no-x-check –no-nouveau-check –no-opengl-files
After the installation is complete, restart and use nvidia-smi to verify whether the installation is successful.
Restart
reboot
nvidia-smi
Specific screenshots during the installation process