It seems like the kernel and the nvidia driver weren't built using the same compiler.
Please, either ssh into your machine, or press CTRL+ALT+F2 and do the following:
1) Make sure security updates are enabled, and update your system ("apt-cache policy gcc-5" should report 5.4.0-6ubuntu1~16.04.9 on Xenial)
2) Make sure no driver from NVIDIA's website is installed. If it is, please uninstall it first.
3) When gcc-5 is updated, re-install the nvidia package from the archive: sudo apt-get install --reinstall nvidia-384 (or nvidia-340)
4) Restart your computer.
It seems like the kernel and the nvidia driver weren't built using the same compiler.
Please, either ssh into your machine, or press CTRL+ALT+F2 and do the following:
1) Make sure security updates are enabled, and update your system ("apt-cache policy gcc-5" should report 5.4.0-6ubuntu1~ 16.04.9 on Xenial)
2) Make sure no driver from NVIDIA's website is installed. If it is, please uninstall it first.
3) When gcc-5 is updated, re-install the nvidia package from the archive:
sudo apt-get install --reinstall nvidia-384 (or nvidia-340)
4) Restart your computer.