Issue
My Ubuntu 18.04 boot is stuck in a loop switching between turning black and showing the following line:
/dev/nvme0n1p5: clean, 481726/7323648 files, 8253625/29267456 blocks.
-
This happens after showing the Ubuntu splash screen and before showing the login manager (gdm3).
Failed solutions
- Running fsck in / in recovery (does not detect errors)
- The solution in Ubuntu stuck on boot, won't get past fsck! (even though my thinkpad T570 only has a graphical intel chip)
- Switching to lightdm (the lightdm login screen shows, but no keyboard input is possible, not even with the onscrean keyboard). From Ubuntu 16.04 LTS won't boot after restart: Hangs after fsck
- Running the commands from Ubuntu 16.04 - GUI freezes on login start page
By editing the grub entry (quiet splash -> nomodeset) I can still log into tty, where the rest of the system seems to be working.
EDIT: Solution for the posterity
It was a typo in the /usr/share/X11/xkb/symbols/pc file. This typo repeatedly crashed the XServer, which made it look like it was stuck on the fsck line.