X11 command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
X11: command not found
or when using sudo you get the following error message
sudo: X11: command not found
Solutions to X11: command not found
How To Fix X11: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu X11 is provided by x11-common package.
x11-common is:
x11-common contains the filesystem infrastructure required for further installation of the X Window System in any configuration; it does not provide a full installation of clients, servers, libraries, and utilities required to run the X Window System.
A number of terms are used to refer to the X Window System, including “X”, “X Version 11”, “X11”, “X11R6”, and “X11R7”. The version of X used in Debian is derived from the version released by the X.Org Foundation, and is thus often also referred to as “X.Org”. All of the preceding quoted terms are functionally interchangeable in an Debian system.
To fix this problem, we can install more using the command below.
sudo apt-get -y install x11-common
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install x11-common.
sudo apt -y install x11-common
Or if you have aptitude installed you can use the following command.
sudo aptitude install x11-common
Summary
In this tutorial we learn how to fix X11 command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.