Technical Anshu
Tutorials Blog

A black screen after an NVIDIA install feels like the PC is dead, but the system underneath is usually alive - that is why a text login still answers on Ctrl+Alt+F3 in most reports. The fix has a strict order: boot once safely with nomodeset, remove the broken driver completely, then let Ubuntu itself pick the recommended driver with ubuntu-drivers. Skipping the purge and installing another version on top is what turns one black screen into a loop of them. These steps are for the Ubuntu and Debian family; the Fedora and Arch equivalents are noted where they differ.

Boot  .  After NVIDIA Driver Install
Black screen. Blinking cursor. No login screen.

X Boot ends on a black screen with a blinking cursor, no login screen

X The Ubuntu logo may appear, then the display goes black and stays black

KEY TEST  TTY login works with Ctrl + Alt + F3 - the system is running, only the graphics driver failed

Boot ends on a black screen with a blinking cursor, no login screen

The fingerprint of this problem: the black screen starts on the very first reboot after the NVIDIA driver install, and a text TTY still answers.

1

Boot Once Safely With nomodeset

Before you can fix anything you need one working boot. The nomodeset flag tells the kernel not to load any graphics driver for this one boot, so Ubuntu starts on a basic display driver instead of the broken NVIDIA one. It changes nothing permanently.

  1. Restart the PC. At the GRUB menu, highlight the normal Ubuntu entry and press e to edit it. If GRUB does not appear, hold Shift (BIOS systems) or tap Esc (UEFI systems) during startup.
  2. Find the line that starts with linux and ends with quiet splash. Move to the end of that line and add a space, then type nomodeset so the end reads quiet splash nomodeset.
  3. Press Ctrl + X or F10 to boot with this one-time change. Ubuntu should now reach the login screen on the fallback display driver, possibly at a low resolution - that is expected and temporary.
  4. If the desktop still does not appear, press Ctrl + Alt + F3, log in with your normal username and password, and do Fix 2 and Fix 3 from that text console instead.
2

Purge the Broken NVIDIA Driver Completely

A half-broken driver left behind will conflict with the next one. Remove every NVIDIA package first so the reinstall in Fix 3 starts from a clean state. Your files and other programs are not touched.

  1. Open a terminal (or use the TTY from Fix 1) and run: sudo apt purge '^nvidia.*' - type your password, check the list it shows is NVIDIA driver packages, and confirm.
  2. Then run sudo apt autoremove to clear the leftover dependencies the driver pulled in.
  3. Reboot once. Ubuntu falls back to the open-source Nouveau driver or the basic display driver, and you should get a normal login screen. A plain working desktop at this point proves the hardware is fine and only the driver was wrong.
3

Reinstall the Recommended Driver With ubuntu-drivers ⭐

This is the fix that works most often, because the tool reads your exact card and your exact Ubuntu version and installs the driver version Ubuntu has tested for that combination - instead of a version picked by hand from a list, which is how most black screens start.

  1. Connect to the internet first (a cable is best; the driver download is large). Then check what Ubuntu recommends for your card: ubuntu-drivers devices - the line marked recommended is the tested driver.
  2. Install it the automatic way: sudo ubuntu-drivers autoinstall and let it finish without closing the terminal.
  3. Reboot. If Secure Boot is enabled on your PC, watch the first reboot carefully - a blue MOK screen may appear before Ubuntu starts. That screen is Fix 4, and it must be completed or the new driver will refuse to load and you will see another black screen.
  4. After logging in, confirm the NVIDIA driver is really in use: nvidia-smi should list your card and the driver version. On Fedora the equivalent route is RPM Fusion and the akmod-nvidia package; on Arch it is sudo pacman -S nvidia - do not use those package names on Ubuntu.
4

Complete the Secure Boot MOK Enrollment

On Ubuntu, a driver module must be signed before Secure Boot will let it load. During installation Ubuntu asks you to set a one-time password for this; at the next reboot a blue screen asks you to use it. If that screen was skipped or timed out once, the module stays unsigned and the driver never loads.

  1. On the blue screen at reboot, choose Enroll MOK, then Continue, then Yes, and type the password you set during the driver install. Then choose Reboot.
  2. If no blue screen appeared and the driver still does not load, check the state in Ubuntu with mokutil --sb-state. If Secure Boot is on and the key was never enrolled, the simplest home-user route is to enter the BIOS/UEFI setup and turn Secure Boot off, then reboot - the driver loads normally after that.
  3. Run nvidia-smi again after this step. A normal card listing here means the whole chain - driver, signature and kernel - is now working.
5

If It Is Still Black: Check Which Driver and Kernel You Are On

If the recommended driver also fails, the cause is usually a mismatch between the driver branch and a very new or very old card, or a kernel update that arrived before its matching driver module. Two checks narrow it down without guessing.

  1. From a TTY, look at what is actually installed: dpkg -l | grep nvidia and your kernel with uname -r. The driver and the linux-headers package for that kernel must both be present; if headers are missing, install them with sudo apt install linux-headers-$(uname -r), then reinstall the driver from Fix 3.
  2. For an older card, read the ubuntu-drivers devices list again - older cards are only supported by an older driver branch (for example a 390 or 470 branch), and forcing the newest branch onto them is a known cause of this exact black screen. Install the branch the tool lists for your card.
  3. If a kernel update started the problem, boot the previous kernel once from GRUB under Advanced options for Ubuntu. If the driver works there, stay on that kernel until the next driver or kernel update arrives, rather than reinstalling repeatedly.
6

Software Needed

No downloads from driver websites are needed, and you should not use the .run installer file from the NVIDIA website on Ubuntu - it bypasses the package system and is a frequent cause of this exact problem after kernel updates. Everything above uses tools already in Ubuntu: GRUB, the terminal, apt and the built-in ubuntu-drivers tool. The only downloads are the driver packages Ubuntu itself selects from its own repositories.

Ubuntu family only for the commands above: ubuntu-drivers, apt purge and the MOK enrollment flow are Ubuntu (and close Debian-family) tools. Fedora users install the driver from RPM Fusion as akmod-nvidia after enabling the RPM Fusion repositories, and Arch users install it with sudo pacman -S nvidia (or nvidia-open where their card is supported by the open kernel modules) - the nomodeset rescue boot and the purge-before-reinstall idea are the same on every distro.
What NOT to do: do not keep installing different driver versions one over another without purging first, do not edit /etc/X11/xorg.conf by hand from random forum posts, and do not reinstall Ubuntu - the same wrong driver choice after a reinstall gives you the same black screen. If the PC shows nothing at all, not even the maker logo or GRUB, that is a different problem (display, cable or hardware), not this driver problem.

More PC Fixes on Technical Anshu

Every week: Linux and Windows problems, hidden tools and full setup guides, explained step by step.

Subscribe on YouTube

Frequently Asked Questions

Why does the black screen happen right after installing the NVIDIA driver?

Because the driver that was installed does not match something on the system: the wrong driver branch for the card, a driver built for a different kernel, the old Nouveau driver still loading alongside it, or an unsigned module that Secure Boot refuses to load. In every case the PC itself is running - only the graphics stack failed, which is why the Ctrl+Alt+F3 text login still works.

Is nomodeset a permanent fix?

No, and it is not meant to be. Adding nomodeset at the GRUB edit screen lasts for that one boot only, which is exactly what you want: one safe boot in which you can purge the broken driver and install the recommended one properly. If the system only ever works with nomodeset, the real driver is still not loading and Fix 3 and Fix 4 are still needed.

What is the safest way to install the NVIDIA driver on Ubuntu?

Let Ubuntu choose: run ubuntu-drivers devices to see the tested recommendation for your card, then sudo ubuntu-drivers autoinstall. Avoid the .run file from the NVIDIA website on Ubuntu - it is not managed by apt, so the next kernel update can leave it broken with no automatic rebuild.

What is the blue MOK screen at reboot, and what password does it want?

It is the Secure Boot key enrollment screen. When the driver was installed, Ubuntu asked you to create a one-time password so its signing key could be trusted at boot. On the blue screen choose Enroll MOK, Continue, Yes, and type that same password. If you never set one or the screen was skipped, turning Secure Boot off in the BIOS/UEFI setup is the simpler route for a home PC.

My card is old. Should I install the newest driver?

No. NVIDIA drops older cards from newer driver branches, so the newest driver may not support your card at all. Run ubuntu-drivers devices and install the branch it lists for your card - for older cards that is often an older branch such as 470 or 390, and that branch is the correct, working choice.

Guide by Technical Anshu · Problem collected from real user reports on Ask Ubuntu ("Black screen after installing NVIDIA proprietary driver"); solution written in original words and verified against the Ubuntu driver installation method (ubuntu-drivers and the Secure Boot MOK enrollment flow). No video on the channel covers this fix yet, so this topic is saved as a fresh video topic. No Shorts are linked in this blog.