debugperl command not found

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

Introduction

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

debugperl: command not found

or when using sudo you get the following error message

sudo: debugperl: command not found

Solutions to debugperl: command not found

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

In Ubuntu debugperl is provided by perl-debug package.

perl-debug is:

debugperl provides a debug-enabled version of Perl which can produce extensive information about the interpreter as it compiles and executes a program (see the -D switch in perlrun(1)).

Note that this package is primarily of use in debugging Perl rather than perl programs, which may be traced/debugged using the standard perl binary using the -d switch (see perldebug(1)).

In addition, this package also includes debugging information for the normal Perl interpreter.

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

sudo apt-get -y install perl-debug

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

You can also use apt command to install perl-debug.

sudo apt -y install perl-debug

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

sudo aptitude install perl-debug

Summary

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