zsh-static command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
zsh-static: command not found
or when using sudo you get the following error message
sudo: zsh-static: command not found
Solutions to zsh-static: command not found
How To Fix zsh-static: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu zsh-static is provided by zsh-static package.
zsh-static 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.
This is the statically-compiled version of the shell, i.e. it doesn’t require any dynamically loaded libraries to be present and will work even if libraries zsh (in general) needs are broken on the system. So it’s more robust in case of a broken system.
It though also has a few limitations compared to the normal, dynamically linked, e.g. it can’t use NSS related functionality which might result in minor imperfections like e.g. user names being shown in the prompt.
To fix this problem, we can install more using the command below.
sudo apt-get -y install zsh-static
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install zsh-static.
sudo apt -y install zsh-static
Or if you have aptitude installed you can use the following command.
sudo aptitude install zsh-static
Summary
In this tutorial we learn how to fix zsh-static command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.