NVIDIA Drivers Installation on Ubuntu

Using Standard Ubuntu Repository

$ ubuntu-drivers devices

This will show the devices that need drivers including the drivers version.

  • Auto install
$ sudo ubuntu-drivers autoinstall
  • Manually install
$ sudo apt install nvidia-xxx

See details.

Disable Nouveau does not solve the “pre-install script failed” problem for the official “run-type” install package.