I'm attempting to install HTML::Template with cpanm in perlbrew... cpan.org is responding with a 403.
myuser@spangled:~$ which cpanm /home/myuser/perl5/perlbrew/bin/cpanm myuser@spangled:~$ cpanm install HTML::Template --> Working on install Fetching http://www.cpan.org/authors/id/D/DA/DAGOLDEN/install-0.01.tar +.gz ... OK Configuring install-0.01 ... OK Building and testing install-0.01 ... OK Successfully installed install-0.01 --> Working on HTML::Template Fetching http://www.cpan.org/authors/id/S/SA/SAMTREGAR/HTML-Template-2 +.97.tar.gz ... OK Configuring HTML-Template-2.97 ... OK ==> Found dependencies: Test::Pod, CGI --> Working on Test::Pod Fetching http://www.cpan.org/authors/id/E/ET/ETHER/Test-Pod-1.52.tar.g +z ... OK Configuring Test-Pod-1.52 ... OK Building and testing Test-Pod-1.52 ... OK Successfully installed Test-Pod-1.52 --> Working on CGI Fetching http://www.cpan.org/authors/id/L/LE/LEEJO/CGI-4.44.tar.gz ... + OK gzip: stdin: unexpected end of file /bin/tar: Child returned status 1 /bin/tar: Error is not recoverable: exiting now ! Failed to unpack CGI-4.44.tar.gz: no directory ! Failed to fetch distribution CGI-4.44 ! Installing the dependencies failed: Module 'CGI' is not installed ! Bailing out the installation for HTML-Template-2.97. 2 distributions installed myuser@spangled:~$ wget http://www.cpan.org/authors/id/L/LE/LEEJO/CGI- +4.44.tar.gz --2019-10-14 16:03:35-- http://www.cpan.org/authors/id/L/LE/LEEJO/CGI +-4.44.tar.gz Resolving www.cpan.org (www.cpan.org)... 151.101.194.217, 151.101.130. +217, 151.101.66.217, ... Connecting to www.cpan.org (www.cpan.org)|151.101.194.217|:80... conne +cted. HTTP request sent, awaiting response... 403 FORBIDDEN 2019-10-14 16:03:36 ERROR 403: FORBIDDEN. myuser@spangled:~$
I've tried this on different days (also tried it last Friday) and on different platforms with different perls. I always get the same result. It can't download the tar file, so it can't unzip it. I can download and unzip the file just fine on my Chrome/Windows setup. Just not from cpanm in perlbrew.

In reply to Getting 403 from cpan.org when installing packages by TieUpYourCamel

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.