Fix Ubuntu Booting Into TTY | Generated by AI

Home 2026.03

Question: Why does Ubuntu boot into a TTY (terminal) instead of the normal graphical window, and how can I switch back to the GUI?

Answer:

When Ubuntu boots into a TTY (text-only terminal like tty1) instead of the graphical desktop, it usually means the graphical system failed to start. This is typically related to the display manager, desktop environment, or graphics drivers.


πŸš€ Quick Temporary Fix (Try First)

Press:

Ctrl + Alt + F2   (or F1–F7)

πŸ”§ Step 1: Try Starting GUI Manually

Login in the TTY, then run:

startx

If it works β†’ problem is likely the display manager not starting automatically.


πŸ”§ Step 2: Restart Display Manager

Ubuntu uses a display manager like:

Try:

sudo systemctl restart gdm3

Or:

sudo systemctl restart lightdm

If GUI appears β†’ issue is temporary.


πŸ”§ Step 3: Enable GUI at Boot

Check default target:

systemctl get-default

If it shows:

multi-user.target

πŸ‘‰ That means CLI-only mode.

Fix it:

sudo systemctl set-default graphical.target
sudo reboot

πŸ”§ Step 4: Reinstall Desktop Environment

Sometimes GNOME is broken:

sudo apt update
sudo apt install ubuntu-desktop

For minimal reinstall:

sudo apt install --reinstall gdm3

πŸ”§ Step 5: Check Disk Space (Very Common!)

df -h

If root (/) is full β†’ GUI won’t start.

Clean up:

sudo apt clean
sudo apt autoremove

πŸ”§ Step 6: Check GPU / Driver Issues

If you recently installed NVIDIA drivers, it might break GUI.

Try:

sudo ubuntu-drivers autoinstall

Or remove problematic drivers:

sudo apt purge nvidia*

πŸ”§ Step 7: Check Logs (Advanced)

journalctl -xe

or:

cat /var/log/Xorg.0.log | grep EE

Look for errors related to:


🧠 Common Causes Summary

Cause Explanation
GUI disabled system boot target set to CLI
Display manager crash gdm3/lightdm not starting
Full disk no space β†’ GUI fails
Broken update packages partially installed
GPU driver issue especially NVIDIA

  1. Ctrl + Alt + F2~F7
  2. sudo systemctl restart gdm3
  3. systemctl get-default β†’ set to graphical
  4. Check disk: df -h
  5. Reinstall: sudo apt install ubuntu-desktop

If you want, paste what you see in the TTY (errors, login messages), and I can pinpoint the exact root cause quickly.


Back Donate