Project

General

Profile

Actions

Bug #6797

closed

The gz tarball for 1.9.3-p194 obtained via the official download URL is invalid

Added by bourquep (Pascal Bourque) over 12 years ago. Updated over 12 years ago.

Status:
Closed
Assignee:
-
Target version:
ruby -v:
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin12.0.0]
Backport:
[ruby-core:46789]

Description

=begin
The file size and SHA/MD5 checksums for the file downloaded from http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.gz are invalid.

Repro:

~/Downloads: wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.gz
Resolving ftp.ruby-lang.org... 221.186.184.68
Connecting to ftp.ruby-lang.org|221.186.184.68|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 60016640 (57M) [application/x-tar]
Saving to: ruby-1.9.3-p194.tar.gz' 2012-07-26 11:22:26 (28.2 MB/s) - ruby-1.9.3-p194.tar.gz' saved [60016640/60016640]

~/Downloads: ls -l ruby-1.9.3-p194.tar.gz
-rw-r--r-- 1 pascal staff 60016640 20 Apr 02:57 ruby-1.9.3-p194.tar.gz

~/Downloads: md5 ruby-1.9.3-p194.tar.gz
MD5 (ruby-1.9.3-p194.tar.gz) = c796faed4b6a43c6260c437a228e6623

~/Downloads: shasum -a 256 ruby-1.9.3-p194.tar.gz
ce017af5fead7d3cc87a742b78887730e3f3ea382ec636e25f59474092b261d2 ruby-1.9.3-p194.tar.gz

The expected values published here[1] are:

  • SIZE: 9841223 bytes
  • MD5: 2278eff4cfed3cbc0653bc73085caa34
  • SHA256: a9d1ea9eaea075c60048369a63b35b3b5a06a30aa214a3d990e0bb71212db8fa

Apparently, I am not alone: http://ubuntuforums.org/showthread.php?t=2007968

The .tar.bz2 file is fine.

[1] http://www.ruby-lang.org/en/news/2012/04/20/ruby-1-9-3-p194-is-released/
=end

Updated by normalperson (Eric Wong) over 12 years ago

"bourquep (Pascal Bourque)" wrote:

~/Downloads: wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.gz
Resolving ftp.ruby-lang.org... 221.186.184.68
Connecting to ftp.ruby-lang.org|221.186.184.68|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 60016640 (57M) [application/x-tar]
Saving to: ruby-1.9.3-p194.tar.gz' 2012-07-26 11:22:26 (28.2 MB/s) - ruby-1.9.3-p194.tar.gz' saved [60016640/60016640]

~/Downloads: ls -l ruby-1.9.3-p194.tar.gz
-rw-r--r-- 1 pascal staff 60016640 20 Apr 02:57 ruby-1.9.3-p194.tar.gz

I think this is because Content-Encoding: gzip is set by the server.
This causes wget to decompress the gzip'ed data (even though wget
didn't request with Accept-Encoding: gzip).

You can try a different HTTP client which won't attempt to decompress
blindly (or a different version/build of wget).

Updated by shyouhei (Shyouhei Urabe) over 12 years ago

  • Status changed from Open to Closed

=begin

Hello, I have direct access to the server.

zsh % ssh
The authenticity of host 'ftp.ruby-lang.org (221.186.184.68)' can't be established.
RSA key fingerprint is 71:f5:f2:28:8b:e0:16:2c:38:0e:36:d3:5c:94:8a:17.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'ftp.ruby-lang.org' (RSA) to the list of known hosts.
Linux carbon 2.6.18-6-686 #1 SMP Fri Feb 19 23:40:03 UTC 2010 i686
Last login: Thu Jul 5 14:18:15 2012 from ns.tokyo.netlab.jp
shyouhei@carbon:~$ sha256sum /home/ftp/pub/ruby/1.9/ruby-1.9.3-p194.tar.*
a9d1ea9eaea075c60048369a63b35b3b5a06a30aa214a3d990e0bb71212db8fa /home/ftp/pub/ruby/1.9/ruby-1.9.3-p194.tar.bz2
46e2fa80be7efed51bd9cdc529d1fe22ebc7567ee0f91db4ab855438cf4bd8bb /home/ftp/pub/ruby/1.9/ruby-1.9.3-p194.tar.gz

seems the file is correct. I bet you have problems on your internet access, such as wget(1).

=end

Actions

Also available in: Atom PDF

Like0
Like0Like0