wsh command not found

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

Introduction

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

wsh: command not found

or when using sudo you get the following error message

sudo: wsh: command not found

Solutions to wsh: command not found

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

In Ubuntu wsh is provided by wcc package.

wcc is:

This tool permits one to manipulate binaries and shared liraries to reuse their API into an external usage, as a relocatable object that can be linked to a new project, or through an interpreter (wsh) to execute internal API directly.

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

sudo apt-get -y install wcc

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

You can also use apt command to install wcc.

sudo apt -y install wcc

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

sudo aptitude install wcc

Summary

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