Dear fellow monks,

I wanted to start a new CPAN prompt installation in my new Linux PC. However I found this following problem especially in accessing ftp.perl.org.

How can I resolve this?

This is the message I got.
$ perl -MCPAN -e shell /home/monkfan/.cpan/CPAN/MyConfig.pm initialized. CPAN is the world-wide archive of perl resources. It consists of about 100 sites that all replicate the same contents all around the globe. Many countries have at least one CPAN site already. The resources found on CPAN are easily accessible with the CPAN.pm module. If you want to use CPAN.pm, you have to configure it properly. If you do not want to enter a dialog now, you can answer 'no' to this question and I'll try to autoconfigure. (Note: you can revisit this dialog anytime later by typing 'o conf init' at the cpan prompt.) Are you ready for manual configuration? [yes] # ...EVERYTHING GOES SMOOTHLY UNTIL..... If you're accessing the net via proxies, you can specify them in the CPAN configuration or via environment variables. The variable in the $CPAN::Config takes precedence. Your ftp_proxy? Your http_proxy? Your no_proxy? You have no /home/ewijaya/.cpan/sources/MIRRORED.BY I'm trying to fetch one CPAN: LWP::UserAgent loaded ok Fetching with LWP: ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY Fetching with LWP: ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY.gz Fetching with Net::FTP: ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY Fetching with Net::FTP ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY.gz Trying with "/usr/bin/lynx -source" to get ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY Looking up ftp.perl.org Making FTP connection to ftp.perl.org Alert!: Unable to connect to FTP host. Looking up ftp.perl.org Making FTP connection to ftp.perl.org Alert!: Unable to connect to FTP host. Can't Access `ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY' Alert!: Unable to access document. lynx: Can't access startfile Trying with "/usr/bin/lynx -source" to get ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY.gz Looking up ftp.perl.org Making FTP connection to ftp.perl.org Alert!: Unable to connect to FTP host. Looking up ftp.perl.org Making FTP connection to ftp.perl.org Alert!: Unable to connect to FTP host. Can't Access `ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY.gz' Alert!: Unable to access document. lynx: Can't access startfile Trying with "/usr/bin/ncftpget" to get ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY Could not connect to ftp.perl.org -- try again later: Connection timed + out. Could not connect to ftp.perl.org -- try again later: Connection timed + out. Could not connect to ftp.perl.org -- try again later: Connection timed + out. ncftpget: cannot open ftp.perl.org: could not connect to remote host, +but can try again. Trying with "/usr/bin/ncftpget" to get ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY.gz Could not connect to ftp.perl.org -- try again later: Connection timed + out. Could not connect to ftp.perl.org -- try again later: Connection timed + out. Could not connect to ftp.perl.org -- try again later: Connection timed + out. ncftpget: cannot open ftp.perl.org: could not connect to remote host, +but can try again. Trying with "/usr/bin/wget -O -" to get ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY --15:57:57-- ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY => `-' Resolving ftp.perl.org... 163.143.1.21 Connecting to ftp.perl.org|163.143.1.21|:21... failed: Connection time +d out. Retrying. --16:01:07-- ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY (try: 2) => `-' Connecting to ftp.perl.org|163.143.1.21|:21... failed: Connection time +d out. Retrying. --16:04:18-- ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY (try: 3) => `-' Connecting to ftp.perl.org|163.143.1.21|:21... failed: Connection time +d out. Retrying. --16:07:30-- ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY (try: 4) => `-' Connecting to ftp.perl.org|163.143.1.21|:21... failed: Connection time +d out. Retrying. --16:10:43-- ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY (try: 5) => `-' Connecting to ftp.perl.org|163.143.1.21|:21... #...THIS KEPT GOING ON AND ON ENDLESSLY....

Regards,
Edward

In reply to Problem Starting CPAN Shell with ftp.perl.org by monkfan

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.