zsh5 command not found

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

Introduction

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

zsh5: command not found

or when using sudo you get the following error message

sudo: zsh5: command not found

Solutions to zsh5: command not found

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

In Ubuntu zsh5 is provided by zsh package.

zsh is:

Zsh is a UNIX command interpreter (shell) usable as an interactive login shell and as a shell script command processor. Of the standard shells, zsh most closely resembles ksh but includes many enhancements. Zsh has command-line editing, built-in spelling correction, programmable command completion, shell functions (with autoloading), a history mechanism, and a host of other features.

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

sudo apt-get -y install zsh

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

You can also use apt command to install zsh.

sudo apt -y install zsh

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

sudo aptitude install zsh

Summary

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