xdm command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
xdm: command not found
or when using sudo you get the following error message
sudo: xdm: command not found
Solutions to xdm: command not found
How To Fix xdm: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu xdm is provided by xdm package.
xdm is:
xdm manages a collection of X servers, which may be on the local host or remote machines. It provides services similar to those provided by init, getty, and login on character-based terminals: prompting for login name and password, authenticating the user, and running a session. xdm supports XDMCP (X Display Manager Control Protocol) and can also be used to run a chooser process which presents the user with a menu of possible hosts that offer XDMCP display management.
To fix this problem, we can install more using the command below.
sudo apt-get -y install xdm
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install xdm.
sudo apt -y install xdm
Or if you have aptitude installed you can use the following command.
sudo aptitude install xdm
Summary
In this tutorial we learn how to fix xdm command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.