NVIDIA GTX 1080 Driver installation on Ubuntu not working

I downloaded the NVIDIA-Linux-x86_64-367.27.run. As given in the installation guide I blacklisted nouveau using blacklist.conf in the modeprobe.d directory and closed the x server service and tried to install the driver but it is showing preinstall script failed. I still continued it then showed nouveau does not support nvidia it has to be disabled.
I am getting this error please helpme out.

And even my root user is not opening coming back to the login page again because of this driver I am doing this in vga consol only now.

Ubuntu version what I am using is 17.04