How to Fix TTY1 Error in Ubuntu 22.04 Example

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

how_to_fix_tty1_error_in_ubuntu

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.

tty1_ubuntu

 

Step 1: Login to TTY1

When you start the system and enter username and password and get access to the command line.

 

Step 2: Update and Upgrade Ubuntu System

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

 

Step 3: Fix Broken Packages

Next, we'll run a broken install command to fix no broken packages.

sudo apt --fix-broken install

 

Step 4: Install the desktop environment and display manager

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

 

Step 5: Configure the display manager

Next, we'll configure the display manager using the following command.

sudo dpkg-reconfigure gdm3

 

Step 6: Reboot your system

Now, reboot the system using the following command.

sudo reboot

 


You might also like :

techsolutionstuff

Techsolutionstuff | The Complete Guide

I'm a software engineer and the founder of techsolutionstuff.com. Hailing from India, I craft articles, tutorials, tricks, and tips to aid developers. Explore Laravel, PHP, MySQL, jQuery, Bootstrap, Node.js, Vue.js, and AngularJS in our tech stack.

RECOMMENDED POSTS

FEATURE POSTS