If you’re into Deep Learning like me and tried to install Ubuntu 16.04 Xenial Xerxus on a pc with Nvidia GTX graphics card with pascal architecture, that is 1080 or 1070 (at this time)  you probably faced a nasty issue that the display goes black and you’re unable to progress.
The problem stems from the fact that the opensource driver nouveau is not working properly with pascal architecture cards (at least that is still the case with current 16.04.02 installer at the begin of 2017).

The solution to this issue is surprisingly simple. In first step make sure to blacklist the nouveau module during the installator boot (you may follow the similar path if you happened to upgrade your GPU as well). Just press any key once the installer boots and enter the boot menu. In boot menu press the down arrow and pick “Install Ubuntu“, then press F6 and in the command at the bottom of the screen at the very end (just before three dashes) type:

modprobe.blacklist=nouveau,lbm-nouveau 3

You may remove the quiet splash as well, make sure to put a 3 at the end which ensures that the system will boot into runlevel 3 before spawning the installer (that will let us to install the missing drivers).

When the system boots login using ubuntu username and empty password. Once into a shell install the nvidia drivers using following commands:

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-375

You may pick the current release of nvidia drivers like 378 or the latest as well.

Once the drivers are in place the only thing you need to do is enter the 5th runlevel thus spawning the installer:

sudo telinit 5

That’s it. Now you’re ready to install Ubuntu. When finished you have to repeat the same trick, that is enter the grub menu, blacklist the nuveau, add the nvidia ppa, install the driver and reboot. That should do the trick :)