ysh command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
ysh: command not found
or when using sudo you get the following error message
sudo: ysh: command not found
Solutions to ysh: command not found
How To Fix ysh: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu ysh is provided by libyaml-shell-perl package.
libyaml-shell-perl is:
This package provides ysh, the YAML test shell, which is meant for experimenting with the Perl YAML modules in an interactive fashion. Any datastructures given in Perl are returned back in YAML (and vice versa).
To fix this problem, we can install more using the command below.
sudo apt-get -y install libyaml-shell-perl
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install libyaml-shell-perl.
sudo apt -y install libyaml-shell-perl
Or if you have aptitude installed you can use the following command.
sudo aptitude install libyaml-shell-perl
Summary
In this tutorial we learn how to fix ysh command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.