cpansign command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
cpansign: command not found
or when using sudo you get the following error message
sudo: cpansign: command not found
Solutions to cpansign: command not found
How To Fix cpansign: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu cpansign is provided by libmodule-signature-perl package.
libmodule-signature-perl is:
Module::Signature is a Perl module that adds cryptographic authentications to CPAN distributions, via the special SIGNATURE file. It also includes the cpansign tool to sign distributions and to verify signatures, and supports using many different cryptographic hashing algorithms.
To fix this problem, we can install more using the command below.
sudo apt-get -y install libmodule-signature-perl
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install libmodule-signature-perl.
sudo apt -y install libmodule-signature-perl
Or if you have aptitude installed you can use the following command.
sudo aptitude install libmodule-signature-perl
Summary
In this tutorial we learn how to fix cpansign command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.