Ubuntu Purple Screen After Update — Quick Fix
Got stuck on a purple screen after an Ubuntu update? Here's the fix — boot into recovery mode and reinstall your graphics drivers.
You updated Ubuntu, rebooted, and got a purple screen. No login, no cursor, nothing.
It's annoying. The update broke something — usually your graphics driver didn't survive the kernel upgrade. Let's fix it.
The Fix: Boot Into Recovery Mode, Reinstall the Driver
- Hold Shift or Esc during boot to get the GRUB menu. If you miss it, just reboot and try again. On some machines (like Dell XPS or Lenovo ThinkPads), tapping Esc works better.
- Select the Advanced options for Ubuntu entry.
- Pick a kernel with (recovery mode) at the end — choose the newest one.
- In the recovery menu, select root (Drop to root shell prompt). You'll get a command line.
- Remount the filesystem read-write:
mount -o remount,rw /
- Now reinstall your graphics driver. If you have an Nvidia card:
apt purge *nvidia* 2>/dev/null
ubuntu-drivers autoinstall
update-initramfs -u
reboot
For AMD or Intel integrated graphics:
apt purge xserver-xorg-video-* 2>/dev/null
apt install --reinstall xserver-xorg
update-initramfs -u
reboot
When it reboots, the purple screen should be gone. You'll see the login screen.
Why This Works
Here's what's actually happening: after a kernel update, your graphics driver binary (a kernel module) is compiled against the old kernel. Ubuntu's package manager doesn't always rebuild it correctly during the update — especially if you use the proprietary Nvidia driver. The purple screen is the display manager (GDM, LightDM) failing to start because it can't talk to the GPU.
The apt purge *nvidia* part removes all Nvidia packages. Then ubuntu-drivers autoinstall picks the right driver for your card and kernel. The update-initramfs -u rebuilds the initial ramdisk, which includes the driver module — that's the step most guides skip. Without it, the new driver won't load early enough during boot. The reason step 6 works is that it forces a fresh driver rebuild against the current kernel.
If you use AMD, the open-source drivers are usually fine — the problem is often a corrupted Xorg configuration. Reinstalling xserver-xorg fixes that.
When The Fix Doesn't Work — Less Common Variations
Sometimes it's not the driver. Here's what else can cause a purple screen after an update:
- Broken display manager: If reinstalling the driver didn't help, try switching from GDM to LightDM or vice versa. From recovery root:
apt install lightdm -y
reboot
Then set LightDM as default when prompted. I've seen this fix issues on Ubuntu 22.04 with dual monitors.
- Corrupted Gnome shell extension: If you had extensions installed, one might have broken after the update. Boot into recovery, then:
mv /home/yourusername/.local/share/gnome-shell/extensions /home/yourusername/.local/share/gnome-shell/extensions.bak
reboot
Replace yourusername with your actual username. This disables all extensions.
- Kernel panic: If even the recovery mode shows a blank screen or text, you might have a kernel panic. Check the last kernel version in GRUB (usually one with a lower number) and boot that. Then hold the newer kernel and wait for a fix.
apt-mark hold linux-image-6.8.0-45-generic
Replace with your broken kernel version.
Prevention: Stop This From Happening Again
You can't avoid every bad update, but you can make it less annoying:
- Back up your /etc/default/grub before any major kernel update. It's a small file, but if GRUB gets corrupted, you'll be stuck without recovery options.
- Use Timeshift. Set it to take a snapshot before each apt upgrade. Takes 5 minutes to set up, saves hours of repair.
- Don't update immediately when a new kernel drops. Wait a week. Sites like Reddit and forums will report driver breakage. I never update kernel packages on day one.
- Keep a Live USB handy. You can boot from it, chroot into your system, and fix things without needing a working display manager.
That purple screen isn't the end of the world. Now you know how to get past it.
Was this solution helpful?