Incorrect status of downloaded bytes while upgrading

Bug #589941 reported by Anish
34
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Aptdaemon
Fix Released
Undecided
Unassigned
apt (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Distribution
========
OS Description: Ubuntu maverick (development branch)
Release: 10.10-alpha1-amd64
System Architecture: amd64

Package
======
aptdaemon
Version: 0.31+bzr412-0ubuntu1

Bug Description
============
When the update manager starts to "update", i.e. starts to download packages, it shows incorrect status.

Once a particular package (lets say of size N kB) has been downloaded, the progress bar corresponding to it reflects the status correctly showing 100%. However, the textfield beside the proogressbar shows "Downloaded 0B of N kB" which is evidently incorrect. This is conspicuous in the attached screenshot.

Tags: patch trusty
Revision history for this message
Anish (anishmangal2002) wrote :
Revision history for this message
Sebastian Heinlein (glatzor) wrote :

This bug is tiggered by libapt or python-apt.

I added a workaround to aptdaemon.

Changed in python-apt (Ubuntu):
status: New → Confirmed
Changed in aptdaemon:
status: New → Fix Committed
Revision history for this message
Julian Andres Klode (juliank) wrote :

Sebastian, could you tell me which property becomes 0, so I can fix it?

Revision history for this message
Sebastian Heinlein (glatzor) wrote :

In the pulse callback the apt_pkg.AcquireItem.current_size and the apt_pkg.AcquireItem.partial_size im done callback (item.owner).

Changed in aptdaemon:
status: Fix Committed → Fix Released
Revision history for this message
Julian Andres Klode (juliank) wrote :

I'm not sure, but that's probably an APT bug.

affects: python-apt (Ubuntu) → apt (Ubuntu)
Changed in apt (Ubuntu):
status: Confirmed → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in apt (Ubuntu):
status: New → Confirmed
Revision history for this message
Stan Hu (stanhu) wrote :

It looks like this bug is present up in Ubuntu 14.04 LTS due to improper progress reporting by the HTTPS protocol. Attached is a patch that fixes the problem.

It looks like the bug has been fixed in apt-1.0.9.8.1.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Properly report the total number of bytes downloaded via apt HTTPS transport" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
tags: added: trusty
Changed in apt (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Sytse Sijbrandij (web2008) wrote :

I hope people don't mind me adding that it would be great if this bug was solved. At GitLab we have large packages and this bug causes confusion https://gitlab.com/gitlab-org/omnibus-gitlab/issues/1175 If a bug bounty would help we'd be happy to provide it.

Revision history for this message
Sytse Sijbrandij (web2008) wrote :

https://gitlab.com/gitlab-org/omnibus-gitlab/issues/1175#note_4272611 "Thanks. It's quite an annoying bug, one that Ubuntu has already fixed in the latest version of apt-get. My patch would address the current version shipping with 14.04 LTS."

Revision history for this message
David Kalnischkies (donkult) wrote :

See https://anonscm.debian.org/cgit/apt/apt.git/commit/?id=9127d7aecf01f2999a2589e4b0503288518b2927 and
https://anonscm.debian.org/cgit/apt/apt.git/commit/?id=27925d82dd0cbae74d48040363fe6f6c2bae5215 among others.

Backporting of these changes itself might not be sensible, but we "backported" these changes to jessie (which at that time early last year was frozen) in and around 1.0.9.8. Later versions have that natively of course.

Changed in apt (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Stan Hu (stanhu) wrote :

David, thanks for the update. I know that Ubuntu versions after 14.04 appear to use apt 1.0.9.8, but it looks like Ubuntu 14.04 is still using 1.0.1. Will there be a fix released for 14.04?

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.