xbsh command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
xbsh: command not found
or when using sudo you get the following error message
sudo: xbsh: command not found
Solutions to xbsh: command not found
How To Fix xbsh: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu xbsh is provided by bsh package.
bsh is:
BeanShell is a small, free, embeddable, Java source interpreter with object scripting language features, written in Java. BeanShell executes standard Java statements and expressions, in addition to obvious scripting commands and syntax. BeanShell supports scripted objects as simple method closures like those in Perl and JavaScript(tm).
You can use BeanShell interactively for Java experimentation and debugging or as a simple scripting engine for you applications. In short: BeanShell is a dynamically interpreted Java, plus some useful stuff.
To fix this problem, we can install more using the command below.
sudo apt-get -y install bsh
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install bsh.
sudo apt -y install bsh
Or if you have aptitude installed you can use the following command.
sudo aptitude install bsh
Summary
In this tutorial we learn how to fix xbsh command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.