apt-get uses an unreliable transfer protocol

Bug #1290270 reported by Patrik Nilsson
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
New
Undecided
Unassigned

Bug Description

I tried to "sudo apt-get update" on a clean Ubuntu Gnome 13.10 using an unreliable mobile Internet connection. The goal was to upgrade to Ubuntu Gnome 14.04 beta.

The connection works for a minute and then dissapears, then comes back.

If the partial downloaded index files are changed, there is no check that they are correctly downloaded from the server (no date stamp, size) and I got the error:

W: GPG error: http://se.archive.ubuntu.com saucy-updates Release: The
following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu
Archive Automatic Signing Key <email address hidden>

After cleaning up "/var/lib/apt/lists/*" I was able to issue another apt-get update, but I'm still not able to download the indexes.

There need to be a timeout (20s) and retry (many). Even looking up must have retries. There need to be a check for changed index files.

Then the goal was to issue "sudo apt-get upgrade" and then upgrade to 14.04 beta. With this I haven't succeded yet.

Tags: saucy
description: updated
Revision history for this message
Erick Brunzell (lbsolost) wrote :

I subscribed and added the release-upgrader tag.

I use only wired connections so I've never been able to test that aspect of the release upgrade but I'd always assumed that a check would be run for a wired connection before beginning the upgrade.

If Brian Murray is reading I'll bet he'd know :^)

tags: added: release-upgrader-core
description: updated
Revision history for this message
Patrik Nilsson (nipatriknilsson) wrote :

(The computer sees the mobile Internet connection as a wired one. The connection is converted to a wired one before my lan-router.)

Revision history for this message
Julian Andres Klode (juliank) wrote :

No, APT should not retry a failing download. That could easily become annoying.

Users can retry (and even continue IIRC) downloading themselves. There might be a small bug on the handling of Release files, but apart from that, there should be no issues.

Revision history for this message
Erick Brunzell (lbsolost) wrote :

I partly misunderstood this last night - must've been half asleep :^(

I believe if I were in a similar situation I'd download the Beta 1 torrent here:

http://cdimage.ubuntu.com/ubuntu-gnome/releases/14.04/beta-1/

Then copy the completed torrent to it's "daily image" name, eg;

cp ubuntu-gnome-14.04-beta1-desktop-i386.iso trusty-desktop-i386.iso

Then use zsync to upgrade that image:

http://cdimage.ubuntu.com/ubuntu-gnome/daily-live/current/

Of course be sure to check md5sums.

Then once you have an updated Trusty installed if a future update is interrupted you should be able to recover using:

apt-get clean
dpkg --configure -a
apt-get -f install

tags: removed: release-upgrader-core
Revision history for this message
Tim Lunn (darkxst) wrote :

<pitti> darkxst: the gpg check is the correctness check
<pitti> darkxst: making this better for little-bandwidth connections is quite a task, and it has been discussed several times already; e. g. adopting Debian's pdiff approach
<pitti> darkxst: I think that can't be applied straightforward to Ubuntu as we have so many publisher cycles

Revision history for this message
Julian Andres Klode (juliank) wrote :

I don't think I fully understand what is happening here.

Is APT partially downloading the files, and then continuing this on the next update run, but fetching the remaining range from a changed file?

Revision history for this message
Patrik Nilsson (nipatriknilsson) wrote :

@ juliank:: Correct

Ken Sharp (kennybobs)
tags: added: utopic
tags: added: saucy
removed: utopic
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.