Unable to locate package lib32bz2-1.0
Try to install it manually by typing:
sudo apt-get update sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6
Update:
if you remove lib32bz2-1.0, it will be installed successfully.
sudo apt-get install lib32z1 lib32ncurses5 lib32stdc++6
Otherwise:
sudo dpkg --add-architecture i386 sudo apt-get update sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 libstdc++6:i386 libfontconfig1:i386 lib
How to install perl modules through CPAN on Ubuntu
Install all dependent packages for CPAN
sudo apt-get install build-essential
Invoke the cpan command as a normal user
cpan
Once you hit on enter for “cpan” to execute, you be asked of some few questions. To make it simple for yourself, answer “no” for the first question so that the latter ones will be done for you automatically.
Enter the commands below
make installinstall Bundle::CPAN
Now all is set and you can install any perl module you want. examples of what installed below:
cpan prompt> install IO::File cpan prompt> install Net::SMTP_auth cpan prompt> install Email::MIME::Attachment::Stripper cpan prompt> install Mail::POP3Client
http://www.sudobash.net/bash-how-to-install-perl-modules-through-cpan-on-ubuntu-2/