Comment 3 for bug 661308

Revision history for this message
Matt Zimmerman (mdz) wrote : Re: zsync fails to download Maverick netbook image

The problem seems to have to do with the HTTP redirect used on the server.

Older versions of zsync did not support redirects at all, but 0.6.1 is supposed to handle this properly.

As a workaround, I did this:

$ wget http://releases.ubuntu.co/10.10/ubuntu-10.10-netbook-i386.iso.zsync
[...]
$ wget --spider http://releases.ubuntu.com/10.10/ubuntu-10.10-netbook-i386.iso
Spider mode enabled. Check if remote file exists.
--2010-10-17 10:50:02-- http://releases.ubuntu.com/10.10/ubuntu-10.10-netbook-i386.iso
Resolving releases.ubuntu.com... 91.189.88.32, 2620:0:dc0:1800:214:4fff:fe7d:1b9, 2001:6b0:e:2018::1337, ...
Connecting to releases.ubuntu.com|91.189.88.32|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://d35x5jwfquk1wr.cloudfront.net/ubuntu-10.10-netbook-i386.iso [following]

Note the URL in the Location: header, then do:

$ zsync -u http://d35x5jwfquk1wr.cloudfront.net/ ubuntu-10.10-netbook-i386.iso.zsync

This tells zsync to download directly from the CDN server rather than trying to handle the redirect.