xauth command not found

In this troubleshooting guide we learn how to fix xauth command not found error message

Introduction

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

xauth: command not found

or when using sudo you get the following error message

sudo: xauth: command not found

Solutions to xauth: command not found

How To Fix xauth: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu xauth is provided by xauth package.

xauth is:

xauth is a small utility to read and manipulate Xauthority files, which are used by servers and clients alike to control authentication and access to X sessions.

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

sudo apt-get -y install xauth

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

You can also use apt command to install xauth.

sudo apt -y install xauth

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

sudo aptitude install xauth

Summary

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