develooper Front page | perl.perl5.porters | Postings from July 2019

Re: "Damaged tar archive" for perl-5.32.2 on ftp calls fromCPANmirrors

Thread Previous | Thread Next
From:
Tony Cook
Date:
July 22, 2019 05:07
Subject:
Re: "Damaged tar archive" for perl-5.32.2 on ftp calls fromCPANmirrors
Message ID:
20190722050713.vrkw2riakc7d7imr@mars.tony.develop-help.com
On Sun, Jul 21, 2019 at 09:49:04PM -0400, James E Keenan wrote:
> > 
> > Does that sha256 match?
> > 
> > tony@mars:~/src$ sha256sum perl-5.31.2.tar.gz
> > 4047199a79bf793e1f245e20fe7eb25f3c76969a475634613b152c5969826d01  perl-5.31.2.tar.gz
> > tony@mars:~/src$ cat perl-5.31.2.tar.gz.sha256.txt
> > 4047199a79bf793e1f245e20fe7eb25f3c76969a475634613b152c5969826d01
> 
> That looks like the problem:
> 
> #####
> # In my FreeBSD-12 VM:
> $ sha256 perl-5.31.2.tar.gz
> SHA256 (perl-5.31.2.tar.gz) =
> a26478e09f7e3c9ad78c295cb0a4781132c56c200b208ac93291474f85fa21d3
> 
> # ftp://mirrors.rit.edu/CPAN/src/5.0/perl-5.31.2.tar.gz.sha256.txt
> 
> 4047199a79bf793e1f245e20fe7eb25f3c76969a475634613b152c5969826d01
> #####
> 
> Also:
> 
> #####
> # In my FreeBSD-12 VM:
> $ sha1 perl-5.31.2.tar.gz
> SHA1 (perl-5.31.2.tar.gz) = 306fcf528e33e2985fab954ccba73cd6397717a5
> 
> # ftp://mirrors.rit.edu/CPAN/src/5.0/perl-5.31.2.tar.gz.sha1.txt
> 3a2e2beb54e6a44b4bb6c4bd2967ec0a0c9f5324
> #####
> 
> How should we proceed?
> 

The sha256 mismatch isn't the "the problem" - it's just a diagnostic.

> > 
> > Otherwise, since you're using FTP, do you call binary() on the
> > Net::FTP object?
> > 
> 
> No, I don't.  But I've performed this call (inside Perl::Download::FTP)
> hundreds of times with no problem -- and now dozens of times from within
> this VM.

Try it, I expect you've just been lucky in your choice of mirrors.

If you're transferring binary files always use binary mode for FTP.

You might want to check the checksums too.

Tony

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About