Blacklisting nouveau as mentioned in nvidia'sNvidia's documentation doesn't work. We don't need to blacklist it. Just install the nvidiaNvidia drivers using apt. You just need to login to tty by pressing ctrl+alt+f1Ctrl+Alt+F1 and stop the lightdm service, and then type:
sudo apt-add-repository ppa:graphics-drivers/ppa
sudo apt install nvidia-384 _(or whatever version compatible with your GPU)_
sudo apt-add-repository ppa:graphics-drivers/ppa
sudo apt install nvidia-384 # or whatever version compatible with your GPU
thenThen restart.