module_info command not found

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

Introduction

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

module_info: command not found

or when using sudo you get the following error message

sudo: module_info: command not found

Solutions to module_info: command not found

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

In Ubuntu module_info is provided by libmodule-info-perl package.

libmodule-info-perl is:

Module::Info is a Perl module for determining information about Perl modules without actually loading the module. It isn’t actually specific to modules and should work on any Perl code.

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

sudo apt-get -y install libmodule-info-perl

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

You can also use apt command to install libmodule-info-perl.

sudo apt -y install libmodule-info-perl

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

sudo aptitude install libmodule-info-perl

Summary

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