xonsh command not found

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

Introduction

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

xonsh: command not found

or when using sudo you get the following error message

sudo: xonsh: command not found

Solutions to xonsh: command not found

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

In Ubuntu xonsh is provided by xonsh package.

xonsh is:

Xonsh is a Python-ish shell language and command prompt. Unlike other shells, xonsh is based on Python, with additional syntax added that makes calling subprocess commands, manipulating the environment, and dealing with the file system easy. Xonsh supports all normal Python constructs and a subset of those available in bash.

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

sudo apt-get -y install xonsh

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

You can also use apt command to install xonsh.

sudo apt -y install xonsh

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

sudo aptitude install xonsh

Summary

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