wsclean command not found

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

Introduction

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

wsclean: command not found

or when using sudo you get the following error message

sudo: wsclean: command not found

Solutions to wsclean: command not found

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

In Ubuntu wsclean is provided by wsclean package.

wsclean is:

WSClean (w-stacking clean) is a fast generic widefield imager. It uses the w-stacking algorithm and can make use of the w-snapshot algorithm. As of Feb 2014, it is 2-12 times faster than CASA’s w-projection, depending on the array configuration. It supports full-sky imaging and proper beam correction for homogeneous dipole arrays such as the MWA.

WSClean allows Hogbom and Cotton-Schwab cleaning, and can clean polarizations joinedly. All operations are performed on the CPU (it is not specialized for GPUs).

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

sudo apt-get -y install wsclean

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

You can also use apt command to install wsclean.

sudo apt -y install wsclean

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

sudo aptitude install wsclean

Summary

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