10

I was trying to install the new NVIDIA drivers and now this is what I see.

enter image description here

Sometimes I can get to the default login screen but when I log as my user I get back to this screen.

Zanna
  • 70,465
Ongezell
  • 111
  • 1
  • 1
  • 4
  • Apparently you need to fix lines 58 and 59 from the file /etc/modprobe.d/blacklist.conf. Try commenting those lines out (put a # symbol at the beginning of the text on line 58 and on line 59, so hi you would become #hi you. You need to open the file as root, eg sudo -H gedit /etc/modprobe.d/blacklist.conf and turn on line numbering) and see what happens. Not sure if this is the source of your problem, but maybe it will help to reveal that. – Zanna Sep 13 '17 at 21:37

6 Answers6

8

TLDR: deleting /etc/X11/xorg.conf solved my boot issue. Continue reading to see if you had a similar issue.

I stumbled across this question when trying to solve my "Ubuntu will not boot normally after nvidia driver install" problem. It might not be the exact same problem, but the title matches and people searching for the issue I had might land here.

I have Ubuntu 18.04 with a working nvidia-driver-415. While playing around with OpenCL, Vulkan and other GPU-related stuff, I upgraded to nvidia-driver-440 (I did also try to install drivers from nvidia site as well). After that I was unable to get to the login screen when nvidia prime profile was enabled (enabling intel profile works ok).

I spent the whole day doing various things, including this one (some other articles also suggest something like this), it turned out that I had an outdated /etc/X11/xorg.conf which had to be deleted as suggested in this post: https://forums.developer.nvidia.com/t/ubuntu-18-lts-nvidia-440-unable-to-make-nvidia-the-primary-display-driver/107632

  • 1
    this really solved my problem! I have been stuck in this mess for two days, and tried every solution I can found with no luck! untill I got this!!Thank you man, you really saved my life! (ubuntu20.04 + gtx 1050) – NextStep Jul 25 '20 at 23:52
  • Works like a harm! I tried installing other drivers, purging, etc, but only this solution work! – Aleksander Burzec Jan 29 '22 at 16:16
  • After fiddling with other changes this solved my problem. I was also playing with nvidia because it was not supporting dual monitors. Now everything is fine. – doubleo46 Feb 06 '23 at 13:00
8

OP's answer removed from the question (and edited to fix possible issues):

So, I fixed the problem.

First press Ctrl+Alt+F1 and log in with your username and password.

Then you will need to remove the old driver:

sudo apt-get purge ^nvidia-

After that you will need to add the graphics-driver PPA

sudo add-apt-repository ppa:graphics-drivers

and then

sudo apt-get update 

Search for the latest Nvidia drivers for your hardware here on the Nvidia site.

In my case I used

sudo apt-get install nvidia-384

And done, just reboot and you should be ready to go.

Eliah Kagan
  • 117,780
Zanna
  • 70,465
3

Start Ubuntu in recovery mode.
Choose "Drop To Root Shell Prompt'. By default, this will allow you to access the file system in read- only mode. Switch to read/write mode by executing This:. $ mount -o remount,rw /
Purge Nvidia by executing:. $ sudo apt-get purge nvidia*
$ reboot
This will get your system started.
Then install the compatible Nvidia driver.

Vishal
  • 61
3

I had a problem after installing the latest NVIDIA driver on fresh Ubuntu 20.04.

What helped me solve the problem is running after NVIDIA installation:

sudo ubuntu-drivers install

To explain.
I just got a black screen on reboot after installing the NVIDIA recommended driver. Further, I used nomodeset feature to enter the Ubuntu.

When in additional software I tried to switch to the old driver, I noticed it said: Continue using a manually installed driver and all other options greyed out. To solve that problem, I followed this answer.

Afterwards the installed nvidia driver was correctly identified and after reboot, it did not get stuck at the black screen any more.

Vaso
  • 183
2

I had the similar problem (after changed the default driver to the system-recommended Nvidia 435/440 and reboot) in Ubuntu 19.10. I have tried many solutions on internet (e.g., edit grub/nomodeset, blacklist nouveau, manual install old nvidia-driver-418), but none of them worked. Desperate and frustrated, but not gave up!

My final fix is pretty funny ... After selecting the latest nvidia driver in Ubuntu/Additional Driver, I run nvidia-smi in the terminal, which gave me an error like "Unable to communicate with GPU because it is insufficiently powered". Was it the problem? Doubted. BTW, my EVGA/RTX 2070 SUPER black has two power connectors, a 6-pin (optional as said in the manual) and an 8-pin (this was the only one I connected). Simply connecting the second port, now everything works like a charm!

0

Enter Recovery Mode, choose "Drop To Root Shell Prompt", if you have the file /etc/X11/xorg.conf delete it (on modern Ubuntu this file is auto-managed with other ones). Reboot, and try.

If that doesn't help reenter "Root Shell Prompt" you can erase nvidia drivers and try another version. For example:

apt remove nvidia-driver-515 --autoremove -yqq && apt install nvidia-driver-510 -yqq
morhook
  • 1,610
  • 14
  • 23