cpan2dsc command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
cpan2dsc: command not found
or when using sudo you get the following error message
sudo: cpan2dsc: command not found
Solutions to cpan2dsc: command not found
How To Fix cpan2dsc: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu cpan2dsc is provided by dh-make-perl package.
dh-make-perl is:
dh-make-perl will create the files required to build a Debian source package out of a perl package. This works for most simple packages and is also useful for getting started with packaging perl modules. Given a perl package name, it can also automatically download it from CPAN.
dh-make-perl can also help keeping the debian/ content current when upstream dependencies or Debian practices change. It can also help improve existing Perl module packages.
Includes the cpan2deb and cpan2dsc flavours.
To fix this problem, we can install more using the command below.
sudo apt-get -y install dh-make-perl
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install dh-make-perl.
sudo apt -y install dh-make-perl
Or if you have aptitude installed you can use the following command.
sudo aptitude install dh-make-perl
Summary
In this tutorial we learn how to fix cpan2dsc command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.