danmcb has asked for the wisdom of the Perl Monks concerning the following question:

Updating my server to perl 5.10, as that is what I use on my dev system. I started with apt-get install perl, which did the first part.

Now I start CPAN'ing in the various modules that my server needs. I use the same mirror list that I use on my dev box. But it turns out that the versions CPAN is looking for are slightly out of date in some case - for instance it tries to download MIME::Types V1.21 when the ftp mirror has 1.24 - so it fails (miserably and often).

Is that a problem with the mirror or something in CPAN configuration?

Replies are listed 'Best First'.
Re: CPAN versions out of date
by JavaFan (Canon) on Oct 04, 2008 at 22:16 UTC
    It may happen because you have an outdated packaged.details or modlist.data file. I'd try the following:
    1. Make sure you've shut down the CPAN shell.
    2. Delete the mentioned files from your cpan directory (rm ~/.cpan/sources/modules/0[23]* usually does the trick; adjust if you use a different cpan directory)
    3. Try again.
    If that doesn't work, force CPAN to use a mirror which you know is up to date.
      or you could just reload index
      cpan> reload index Fetching with LWP: http://cpan.strawberryperl.com/authors/01mailrc.txt.gz Fetching with LWP: http://cpan.strawberryperl.com/modules/02packages.details.txt.gz Fetching with LWP: http://cpan.strawberryperl.com/modules/03modlist.data.gz Database was generated on Tue, 19 Aug 2008 03:17:30 GMT Updating database file ... Gathering information from index files ... Obtaining current state of database ... Populating database tables ... Done! cpan>