sudo update-grub
sudo gedit /etc/default/grub
sudo update-grub
sudo apt-get update
sudo apt-get upgrade
#for case1: original driver installed by apt-get:
sudo apt-get remove --purge nvidia*
#for case2: original driver installed by runfile:
sudo update-initramfs -u
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-driver-460
sudo apt-get install mesa-common-dev3
sudo apt-get install mesa-common-dev
sudo apt-get install nvidia-driver-460
sudo apt-get update
sudo apt-get upgrade
重启
nvidia-smi