Hello, web developers! In this article, we'll see how to fix the tty1 error in Ubuntu 22.04. Also, you can resolve the tty1 error in Ubuntu versions 16.04, 18.04, and 20.04. The "tty1" error on Ubuntu typically refers to issues related to the virtual terminal or console (tty1).
You may encounter situations where the system boots into tty1 mode instead of the usual graphical user interface (GUI). This can happen for various reasons, such as removing desktop environments or installing dependencies.
Resolved: Ubuntu 18.04/22.04 TTY1 Error
But, I faced this issue after docker was installed in my system.
You may display a black screen and login incorrectly like the below screenshot.
When you start the system and enter username and password and get access to the command line.
Now, we'll update and upgrade the Ubuntu system using the following command. this step is optional because we are sometimes required to update the system.
sudo apt update
sudo apt upgrade
Next, we'll run a broken install command to fix no broken packages.
sudo apt --fix-broken install
Now, we'll install the desktop environment to display Ubuntu GUI and display manager GDM using the following command.
sudo apt install ubuntu-desktop
sudo apt install gdm3
Next, we'll configure the display manager using the following command.
sudo dpkg-reconfigure gdm3
Now, reboot the system using the following command.
sudo reboot
You might also like :