in reply to cpan error messages

There is a command line utility for UNIX-like systems called "script" (in the util-linux package for Gentoo, and bsdutils for Debian) that will record an interactive terminal session to a file.

Running script cpan-session.txt before you run the CPAN shell should do the trick.