modules-used command not found

In this troubleshooting guide we learn how to fix modules-used command not found error message

Introduction

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

modules-used: command not found

or when using sudo you get the following error message

sudo: modules-used: command not found

Solutions to modules-used: command not found

How To Fix modules-used: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu modules-used is provided by libmodule-used-perl package.

libmodule-used-perl is:

Module::Used is a Perl module that does static analysis of arbitrary Perl code, looking for use and require statements to determine what modules are required by the code. It also knows about Moose and Moose::Role, so it can determine appropriate dependencies in that case too.

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

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

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

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

sudo apt -y install libmodule-used-perl

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

sudo aptitude install libmodule-used-perl

Summary

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