switchsh command not found

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

Introduction

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

switchsh: command not found

or when using sudo you get the following error message

sudo: switchsh: command not found

Solutions to switchsh: command not found

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

In Ubuntu switchsh is provided by switchsh package.

switchsh is:

Small program to bind-mount bash as /bin/sh for its child processes.

It can be used when bash is not the default shell interpreter but a given program makes use of bashisms (features not required by Policy for sh) and one wants to run it without changing (or can not change) the default sh.

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

sudo apt-get -y install switchsh

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

You can also use apt command to install switchsh.

sudo apt -y install switchsh

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

sudo aptitude install switchsh

Summary

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