env2 command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
env2: command not found
or when using sudo you get the following error message
sudo: env2: command not found
Solutions to env2: command not found
How To Fix env2: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu env2 is provided by env2 package.
env2 is:
Output environment setting code for the target scripting language. Can report only differences or all environment variables.
For example, convert csh setup script to bash or the other way around. Or use it to simplify the creation of modulesfiles (cf. package environment-modules).
Support bash, csh, ksh, modulecmd, perl, plist, sh, tclsh, tcsh, vim, yaml, and zsh.
To fix this problem, we can install more using the command below.
sudo apt-get -y install env2
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install env2.
sudo apt -y install env2
Or if you have aptitude installed you can use the following command.
sudo aptitude install env2
Summary
In this tutorial we learn how to fix env2 command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.