lightdm-session command not found

In this troubleshooting guide we learn how to fix lightdm-session command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

lightdm-session: command not found

or when using sudo you get the following error message

sudo: lightdm-session: command not found

Solutions to lightdm-session: command not found

How To Fix lightdm-session: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu lightdm-session is provided by lightdm package.

lightdm is:

LightDM is a X display manager that:

  • Has a lightweight codebase
  • Is standards compliant (PAM, ConsoleKit, etc)
  • Has a well defined interface between the server and user interface
  • Cross-desktop (greeters can be written in any toolkit)

To fix this problem, we can install more using the command below.

sudo apt-get -y install lightdm

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install lightdm.

sudo apt -y install lightdm

Or if you have aptitude installed you can use the following command.

sudo aptitude install lightdm

Summary

In this tutorial we learn how to fix lightdm-session command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.