The system is ubuntu16.04 server
Check the folder containing Nvidia-related files in the system by running the sentence below
dpkg -l | grep -i nvidia
Reinstall the nvidia driver and uninstall first:
sudo apt-get purge nvidia-*
Installation, because it needs to be used in conjunction with cuda, it is safer to use the following method to install. If you have tried others before, there will be a problem of version mismatch.
sudo sh cuda_8.0.61_375.26_linux.run
Only nvidia-driver choose yes , others choose no
Note:
This command has been used to uninstall before, but it cannot be uninstalled completely:
sudo apt-get remove --purge nvidia-*
Some netizens suggested that the following sentence can be used to completely delete:
sudo apt-get remove --purge nvidia-\*
Pro-test is effective.