xtrace command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
xtrace: command not found
or when using sudo you get the following error message
sudo: xtrace: command not found
Solutions to xtrace: command not found
How To Fix xtrace: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu xtrace is provided by xtrace package.
xtrace is:
What strace is for system calls, xtrace is for X11 connections: you hook it between one or more X11 clients and an X server and it prints the requests going from client to server and the replies, events and errors going the other way.
To fix this problem, we can install more using the command below.
sudo apt-get -y install xtrace
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install xtrace.
sudo apt -y install xtrace
Or if you have aptitude installed you can use the following command.
sudo aptitude install xtrace
Summary
In this tutorial we learn how to fix xtrace command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.