in reply to How to reset cpan to default values

you can delete /etc/perl/CPAN/Config.pm and then try perl -MCPAN -e shell

Replies are listed 'Best First'.
Re^2: How to reset cpan to default values
by xorl (Deacon) on Jun 18, 2012 at 16:53 UTC

    Thanks this almost worked. It got me on track of trying to figure out where cpan kept its config stuff.

    There was something in $HOME/.cpan/CPAN/MyConfig.pm that was setting the urllist and making it impossible to download the MIRRORED.BY file from a real cpan mirror. I removed it and magic happened.

      one more thing.take the backup of config.pm and if you want to do some minor changes in Ur CPAN configuration then simply edit config.pm which is easier than typing commands on Ur CPAN shell.
      eg if u want to add some URL then it is much easier and faster to edit the file