Help me to install Nvidia Driver on Ubuntu 17.10

Hello
Gpu Details :
Gtx 1060 6gb PNY Nvidia
Operating System Ubuntu

I m getting This Error :

(1)
ERROR: You appear to be running an X server; please exit X before
installing. For further details, please see the section INSTALLING
THE NVIDIA DRIVER in the README available on the Linux driver
download page at www.nvidia.com
(2)
ERROR: Installation has failed. Please see the file
‘/var/log/nvidia-installer.log’ for details. You may find
suggestions on fixing installation problems in the README available
on the Linux driver download page at www.nvidia.com.

Please Help me out Any answer ll be Appreciated

Don’t use the .run installer, use the ubuntu graphics ppa https://launchpad.net/~graphics-drivers/+archive/ubuntu/ppa and follow the install instructions there. Then use
sudo apt install nvidia-396
to install the driver.

Remember to rerun and resubmit the benchmarks after driver upgrades, this will allow us to gather a bunch of data on performance that we can share with everybody.

If you run into old documentation referring to other PPAs, you can help us by consolidating references to this PPA.

If someone wants to go ahead and start prototyping on software-properties-gtk on what the GUI should look like, please start hacking!

Help us Help You!

We use the donation funds to get the developers hardware to test and upload these drivers, please consider donating to the “community” slider on the donation page if you’re loving this PPA:

More info: https://launchpad.net/~graphics-drivers/+archive/ubuntu/ppa
Press [ENTER] to continue or Ctrl-c to cancel adding it.

gpg: keybox ‘/tmp/tmp83ycq4i6/pubring.gpg’ created
gpg: /tmp/tmp83ycq4i6/trustdb.gpg: trustdb created
gpg: key FCAE110B1118213C: public key “Launchpad PPA for Graphics Drivers Team” imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg: imported: 1
OK
alien-world@alien-World:~$ sudo apt-get update
Hit:1 Index of /graphics-drivers/ppa/ubuntu artful InRelease
Hit:2 Index of /ubuntu artful InRelease
Hit:3 Index of /ubuntu artful-security InRelease
Hit:4 Index of /ubuntu artful-updates InRelease
Hit:5 Index of /ubuntu artful-backports InRelease
Reading package lists… Done
alien-world@alien-World:~$ sudo apt install nvidia-396
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package nvidia-396
alien-world@alien-World:~$ sudo apt install nvidia-396
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package nvidia-396

Now i m getting This Error

Yes, sorry, I didn’t notice the ppa removed the drivers for 17.10 since the support for that ended in july. So be aware that you’ll be running an outdated system.
You can install an older driver using either the Software&Updates application or running
sudo apt install nvidia-384
or
sudo apt-install nvidia-387

in theory, ubuntu had to find the driver for the video card itself, try installing via Software & Updates