SPUG: Way to reset CPAN shell mirrors list?

Ryan Kuykendall ryank at drizzle.com
Sun May 29 18:15:04 PDT 2005


Howdy,

Is there a way to reset the list of mirrors used by the CPAN shell?   
I consistently get this behavior every time I try to install a perl  
module (this is on a new machine.)  Is it as simple as just choosing  
a different set of mirrors?

Here's what I get currently:

cpan> install DateTime
CPAN: Storable loaded ok
Going to read /opt/perl/.cpan/Metadata
   Database was generated on Sat, 28 May 2005 01:56:43 GMT
Going to read /opt/perl/.cpan/sources/authors/01mailrc.txt.gz
CPAN: Compress::Zlib loaded ok
CPAN: LWP::UserAgent loaded ok
Fetching with LWP:
   ftp://ftp.cs.colorado.edu/pub/perl/CPAN/modules/ 
02packages.details.txt.gz
LWP failed with code[404] message[File '02packages.details.txt.gz'  
not found]
Fetching with Net::FTP:
   ftp://ftp.cs.colorado.edu/pub/perl/CPAN/modules/ 
02packages.details.txt.gz
Couldn't fetch 02packages.details.txt.gz from ftp.cs.colorado.edu
Fetching with LWP:
   ftp://ftp.duke.edu/pub/perl/modules/02packages.details.txt.gz
Useless content call in void context at /Library/Perl/5.8.6/LWP/ 
Protocol/ftp.pm line 398
LWP failed with code[400] message[FTP return code 000]
Fetching with Net::FTP:
   ftp://ftp.duke.edu/pub/perl/modules/02packages.details.txt.gz
Couldn't fetch 02packages.details.txt.gz from ftp.duke.edu
Fetching with LWP:
   ftp://linux.cs.lewisu.edu/pub/CPAN/modules/02packages.details.txt.gz
LWP failed with code[404] message[File '02packages.details.txt.gz'  
not found]
Fetching with Net::FTP:
   ftp://linux.cs.lewisu.edu/pub/CPAN/modules/02packages.details.txt.gz
Couldn't fetch 02packages.details.txt.gz from linux.cs.lewisu.edu
Fetching with LWP:
   ftp://mirror.cc.columbia.edu/pub/software/cpan/modules/ 
02packages.details.txt.gz
LWP failed with code[404] message[File '02packages.details.txt.gz'  
not found]
Fetching with Net::FTP:
   ftp://mirror.cc.columbia.edu/pub/software/cpan/modules/ 
02packages.details.txt.gz
Couldn't fetch 02packages.details.txt.gz from mirror.cc.columbia.edu
Fetching with LWP:
   ftp://mirror.sit.wisc.edu/pub/CPAN/modules/02packages.details.txt.gz
LWP failed with code[404] message[File '02packages.details.txt.gz'  
not found]
Fetching with Net::FTP:
   ftp://mirror.sit.wisc.edu/pub/CPAN/modules/02packages.details.txt.gz
Couldn't fetch 02packages.details.txt.gz from mirror.sit.wisc.edu
Fetching with LWP:
   http://cpan.binarycompass.org/modules/02packages.details.txt.gz
Going to read /opt/perl/.cpan/sources/modules/02packages.details.txt.gz
   Database was generated on Sun, 29 May 2005 15:05:48 GMT
Fetching with LWP:
   ftp://ftp.cs.colorado.edu/pub/perl/CPAN/modules/03modlist.data.gz
LWP failed with code[404] message[File '03modlist.data.gz' not found]
Fetching with Net::FTP:

...etc, etc...

===========================

Also, is this being caused by the CPAN shell, or could it be my  
firewall?  I figured because I was seeing the "LWP failed with code  
[404]" that the servers were actually returning a true 404, but could  
this just be default behavior from Net::FTP when it has waited too  
long for a response?

Thanks,

Ryan



More information about the spug-list mailing list