Unable to install nvidia drivers - unable to locate package

Because this is a top listed return search on Google on the subject, I wanted to post this because it seems things have changed.

This won't work for me after a fresh Ubuntu Desktop 18.0.4 install:

sudo apt install nvidia-396

This will:

sudo apt install nvidia-driver-396

No idea why the syntax changed. Makes for a lot of information on installing Nvidia drivers on the web confusing. So much wasted time!


The second command is wrong. It should be:

sudo add-apt-repository ppa:graphics-drivers/ppa