envpath command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
envpath: command not found
or when using sudo you get the following error message
sudo: envpath: command not found
Solutions to envpath: command not found
How To Fix envpath: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu envpath is provided by libenv-path-perl package.
libenv-path-perl is:
Env::Path presents an object-oriented interface to path variables, defined as that subclass of environment variables which name an ordered list of filesystem elements separated by a platform-standard separator.
Env::Path is for cases where you need to insert or remove interior path entries, strip redundancies, operate on a path variable without having to know whether the current platform uses “:” or “;”, operate on a path variable which may have a different name on different platforms, etc.
To fix this problem, we can install more using the command below.
sudo apt-get -y install libenv-path-perl
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install libenv-path-perl.
sudo apt -y install libenv-path-perl
Or if you have aptitude installed you can use the following command.
sudo aptitude install libenv-path-perl
Summary
In this tutorial we learn how to fix envpath command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.