ash command not found

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

Introduction

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

ash: command not found

or when using sudo you get the following error message

sudo: ash: command not found

Solutions to ash: command not found

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

In Ubuntu ash is provided by ash package.

ash is:

This package allows upgrading ash to its replacement, dash. It includes the /bin/ash symlink. It can be removed as soon as /bin/ash is no longer used.

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

sudo apt-get -y install ash

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

You can also use apt command to install ash.

sudo apt -y install ash

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

sudo aptitude install ash

Summary

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