after upgrading my machine to 18.04 from 16.04 I noticed that my Nvidia driver is no longer installed and after I reinstalled the driver I’m getting a black screen I’ve got such a problem before and fixed it with manually installing the Nvidia driver instead of using autoinstall or apt-get install nvidia (number goes here).
i’ve tried all the method of installation mentioned here
and read almost all topic about this problem on askubuntu , its almost 2 weeks now and i’m unable to find a solution to this problem
information you might need
lspci | grep VGA 02:00.0 VGA compatible controller: NVIDIA Corporation GM204 [GeForce GTX 970] (rev a1) ubuntu-drivers devices == /sys/devices/pci0000:00/0000:00:01.1/0000:02:00.0 == modalias : pci:v000010DEd000013C2sv00001458sd0000367Abc03sc00i00 vendor : NVIDIA Corporation model : GM204 [GeForce GTX 970] driver : nvidia-driver-415 - third-party free recommended driver : nvidia-driver-390 - third-party free driver : nvidia-driver-396 - third-party free driver : nvidia-driver-410 - third-party free driver : xserver-xorg-video-nouveau - distro free builtin nvidia-detector none sudo lshw -numeric -C display *-display UNCLAIMED description: VGA compatible controller product: GM204 [GeForce GTX 970] [10DE:13C2] vendor: NVIDIA Corporation [10DE] physical id: 0 bus info: pci@0000:02:00.0 version: a1 width: 64 bits clock: 33MHz capabilities: pm msi pciexpress vga_controller bus_master cap_list configuration: latency=0 resources: memory:f2000000-f2ffffff memory:e0000000-efffffff memory:f0000000-f1ffffff ioport:e000(size=128) memory:f3000000-f307ffff *-display UNCLAIMED description: Display controller product: Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller [8086:412] vendor: Intel Corporation  physical id: 2 bus info: pci@0000:00:02.0 version: 06 width: 64 bits clock: 33MHz capabilities: msi pm bus_master cap_list configuration: latency=0 resources: memory:f3400000-f37fffff memory:d0000000-dfffffff ioport:f000(size=64)