cpan2dist command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
cpan2dist: command not found
or when using sudo you get the following error message
sudo: cpan2dist: command not found
Solutions to cpan2dist: command not found
How To Fix cpan2dist: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu cpan2dist is provided by libcpanplus-perl package.
libcpanplus-perl is:
The CPANPLUS library is an API to the CPAN mirrors and a collection of interactive shells, commandline programs, etc, that use this API.
To fix this problem, we can install more using the command below.
sudo apt-get -y install libcpanplus-perl
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install libcpanplus-perl.
sudo apt -y install libcpanplus-perl
Or if you have aptitude installed you can use the following command.
sudo aptitude install libcpanplus-perl
Summary
In this tutorial we learn how to fix cpan2dist command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.