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.
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.
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.
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.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.
sudo apt purge '^nvidia.*' - type your password, check the list it shows is NVIDIA driver packages, and confirm.sudo apt autoremove to clear the leftover dependencies the driver pulled in.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.
ubuntu-drivers devices - the line marked recommended is the tested driver.sudo ubuntu-drivers autoinstall and let it finish without closing the terminal.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.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.
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.nvidia-smi again after this step. A normal card listing here means the whole chain - driver, signature and kernel - is now working.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.
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.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.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-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.
Every week: Linux and Windows problems, hidden tools and full setup guides, explained step by step.
Subscribe on YouTubeBecause 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.
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.
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.
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.
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.