pm_which command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
pm_which: command not found
or when using sudo you get the following error message
sudo: pm_which: command not found
Solutions to pm_which: command not found
How To Fix pm_which: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu pm_which is provided by libmodule-util-perl package.
libmodule-util-perl is:
Module::Util provides useful functions to manipulate module names. Its main aim is to centralise some of the functions commonly used by modules that manipulate other modules in some way, like converting module names to relative paths.
It also provides some general utility functions for working with modules, such as determining whether a string “looks like” a module name, or testing if a module is loaded (using %INC magic).
To fix this problem, we can install more using the command below.
sudo apt-get -y install libmodule-util-perl
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install libmodule-util-perl.
sudo apt -y install libmodule-util-perl
Or if you have aptitude installed you can use the following command.
sudo aptitude install libmodule-util-perl
Summary
In this tutorial we learn how to fix pm_which command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.