Ubuntu: Remove LightDM in 3 Simple Steps

Ubuntu, a popular Linux distribution, uses LightDM by default for its display manager. However, there might be instances where you want to remove LightDM and switch to another display manager or use a different login method. This guide will walk you through the process of removing LightDM from your Ubuntu system.

Learn how to kill a process on Ubuntu
Learn how to kill a process on Ubuntu

Before proceeding, it's essential to understand that removing LightDM will also remove the graphical login screen. You'll need to use a different method to log in to your system, such as using the console or switching to another display manager like GDM or SDDM.

The new Ubuntu Software Center - gHacks Tech News
The new Ubuntu Software Center - gHacks Tech News

Understanding Display Managers

Display managers are responsible for managing the graphical login screen and handling user sessions. Ubuntu uses LightDM by default, but other popular display managers include GDM (GNOME Display Manager) and SDDM (Simple Desktop Display Manager).

How to Remove Trash Icon From Desktop in Ubuntu
How to Remove Trash Icon From Desktop in Ubuntu

Removing LightDM doesn't mean you can't have a graphical login screen. You can install and configure another display manager to achieve this. In this guide, we'll focus on removing LightDM and briefly discuss switching to GDM as an alternative.

Removing LightDM

an image of a computer screen with many icons
an image of a computer screen with many icons

To remove LightDM, you'll need to use the package manager of your Ubuntu distribution. In this case, we'll use apt, the default package manager for Ubuntu. First, update your package list to ensure you have the latest information about available packages:

sudo apt update

Next, remove the LightDM package using the following command:

an anime character is flying through the air with her arms out and legs spread wide
an anime character is flying through the air with her arms out and legs spread wide

sudo apt remove lightdm

After removing LightDM, you'll need to reboot your system. You can do this using the following command:

sudo reboot

How to Reset the Ubuntu Desktop Settings
How to Reset the Ubuntu Desktop Settings

Switching to GDM

If you want to switch to GDM as your display manager, you can install it using the apt package manager. First, update your package list and install GDM:

Installing Nextcloud on Ubuntu
Installing Nextcloud on Ubuntu
How to Boot Ubuntu into Recovery Mode
How to Boot Ubuntu into Recovery Mode
Ubuntu Running Slow? 8 Tips to Speed Up Your Linux PC
Ubuntu Running Slow? 8 Tips to Speed Up Your Linux PC
How to Remove the Left Out Files of Uninstalled Software in Ubuntu ?
How to Remove the Left Out Files of Uninstalled Software in Ubuntu ?
Setting up and Running the Ubuntu Boot Repair Tool
Setting up and Running the Ubuntu Boot Repair Tool
the word ubuntu is surrounded by bubbles and rings on a black background
the word ubuntu is surrounded by bubbles and rings on a black background
How to list services on Ubuntu
How to list services on Ubuntu
Ubuntu One Is Doomed; Try These 5 Linux-Friendly Alternatives
Ubuntu One Is Doomed; Try These 5 Linux-Friendly Alternatives
Top 5 Things to Do After Installing Ubuntu
Top 5 Things to Do After Installing Ubuntu
How to Disable Wayland on Ubuntu
How to Disable Wayland on Ubuntu
a light that is on in the middle of a table with a circular object above it
a light that is on in the middle of a table with a circular object above it
How To Install Neofetch System Information Tool In Ubuntu Linux
How To Install Neofetch System Information Tool In Ubuntu Linux
the ubuntu logo on an orange background
the ubuntu logo on an orange background
Debian vs. Ubuntu: Best Linux Distro for Laptops, Desktops, and Servers
Debian vs. Ubuntu: Best Linux Distro for Laptops, Desktops, and Servers
wls ubuntu
wls ubuntu
Ubuntu 24.04 LTS «Noble Numbat» ya fue liberada y estas son sus novedades
Ubuntu 24.04 LTS «Noble Numbat» ya fue liberada y estas son sus novedades
How to Upgrade to Ubuntu 26.04 LTS from Ubuntu 24.04 LTS
How to Upgrade to Ubuntu 26.04 LTS from Ubuntu 24.04 LTS
Auto Draft
Auto Draft
Remove Xampp from Linux (Ubuntu)
Remove Xampp from Linux (Ubuntu)
15+ Best Linux Themes For Ubuntu 20.04 LTS [2023] | Technology News Information & Jobs
15+ Best Linux Themes For Ubuntu 20.04 LTS [2023] | Technology News Information & Jobs

sudo apt update

sudo apt install gdm

After installing GDM, you'll need to configure your system to use it as the default display manager. You can do this by running the following command:

sudo systemctl set-default graphical.target

Finally, reboot your system to apply the changes:

sudo reboot

Upon rebooting, your system should now use GDM as the default display manager, and you should see the GDM login screen instead of the LightDM login screen.

Troubleshooting Common Issues

After removing LightDM, you might encounter some issues. Here, we'll discuss a few common problems and their solutions.

Unable to Boot into Graphical Mode

If you're unable to boot into graphical mode after removing LightDM, it's likely that your system is still configured to use LightDM. To fix this, you can use the following command to set the default target to graphical mode:

sudo systemctl set-default graphical.target

No Login Screen After Reboot

If you don't see a login screen after rebooting, it's possible that your system is still using the old display manager configuration. To fix this, you can manually start the new display manager using the following command:

sudo systemctl start gdm

If you've followed the steps outlined in this guide and are still experiencing issues, please don't hesitate to consult the Ubuntu community forums or seek professional help.

In the world of Linux, there's always more to explore and learn. Removing LightDM and switching to another display manager is just one example of the many customization options available to Ubuntu users. Happy Linuxing!