scandeps command not found

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

Introduction

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

scandeps: command not found

or when using sudo you get the following error message

sudo: scandeps: command not found

Solutions to scandeps: command not found

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

In Ubuntu scandeps is provided by libmodule-scandeps-perl package.

libmodule-scandeps-perl is:

Module::ScanDeps is a Perl module that scans potential modules used by perl programs to determine information about modules they depend on. It performs static analysis as well as more aggressive scanning (by running files in compile-only or normal mode).

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

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

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

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

sudo apt -y install libmodule-scandeps-perl

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

sudo aptitude install libmodule-scandeps-perl

Summary

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