Installation of Ruby 1.9.3 fails - creates non-existant URL and doesn't detect resulting HTTP404 error

Bug #1054717 reported by Avi Greenbury
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ruby-rvm (Ubuntu)
New
Undecided
Unassigned

Bug Description

On Ubuntu 12.04 amd64 with ruby-rvm 1.6.9-0ubuntu2.1, when trying to install Ruby 1.9.3 with RVM I see this:

root@host:~# rvm install 1.9.3
Installing Ruby from source to: /usr/share/ruby-rvm/rubies/ruby-1.9.3, this may take a while depending on your cpu(s)...

ruby-1.9.3 - #fetching
ruby-1.9.3 - #extracting ruby-1.9.3- to /usr/share/ruby-rvm/src/ruby-1.9.3
ERROR: Error running 'bunzip2 < '/usr/share/ruby-rvm/archives/ruby-1.9.3-.tar.bz2' | tar xf - -C /usr/share/ruby-rvm/tmp/rvm_src_22893', please read /usr/share/ruby-rvm/log/ruby-1.9.3/extract.log
ERROR: There has been an error while trying to extract the source.
Halting the installation.
ERROR: There has been an error fetching the ruby interpreter. Halting the installation.
root@craftermania-ci:~#

Inspecting /usr/share/ruby-rvm/archives/ruby-1.9.3-.tar.bz2 I can see that it contains a 404 message:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /pub/ruby/1.9/ruby-1.9.3-.tar.bz2 was not found on this server.</p>
</body></html>

It looks like RVM is creating a wrong URL (as suggested by the '1.9.3-' version string) and then goes on to not notice the 404 error.

to clarify, I'd expect to see:
* A URL that exists be created
* An appropriate error be displayed in the instance where the server responds with a non-200 status.

Avi Greenbury (bigreds)
description: updated
Avi Greenbury (bigreds)
summary: - Installation of 1.9.3 fails - creates non-existant URL and doesn't
+ Installation of Ruby 1.9.3 fails - creates non-existant URL and doesn't
detect resulting HTTP404 error
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.