cpandb command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
cpandb: command not found
or when using sudo you get the following error message
sudo: cpandb: command not found
Solutions to cpandb: command not found
How To Fix cpandb: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu cpandb is provided by libcpan-sqlite-perl package.
libcpan-sqlite-perl is:
CPAN::SQLite is used for setting up, maintaining, and searching through a local CPAN database consisting of information in the three main CPAN index files:
$CPAN/authors/01mailrc.txt.gz $CPAN/modules/02packages.details.txt.gz $CPAN/modules/03modlist.data.gz
DBD::SQLite is used as the database engine.
To fix this problem, we can install more using the command below.
sudo apt-get -y install libcpan-sqlite-perl
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install libcpan-sqlite-perl.
sudo apt -y install libcpan-sqlite-perl
Or if you have aptitude installed you can use the following command.
sudo aptitude install libcpan-sqlite-perl
Summary
In this tutorial we learn how to fix cpandb command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.