[Bug 1909729] Re: Remaining time while running "sudo apt upgrade"

Julian Andres Klode 1909729 at bugs.launchpad.net
Thu Dec 31 08:47:59 UTC 2020


The design here is different from the download progress, yes. The
download progress has to deal with potentially long times whereas the
cache unlocking only needs to wait for a number of seconds you can count
(unless it's waiting indefinitely..., but even then I'd expect you'd
have stopped earlier and revisited that later), its also closely related
to percentage with the maximum of 120 in non-interactive cases.

I believe that for the max timeout of 120s a seconds based approach
makes more sense, and arguably we need that for the interactive one for
consistency too. In terms of progress, this also jumps around less.

I have not analysed this further, but I also vaguely recall some size
constraints in terms of the length of the string and how it fits into
standard 80 character width terminal.

** Changed in: apt (Ubuntu)
       Status: New => Opinion

** Changed in: apt (Ubuntu)
       Status: Opinion => Triaged

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/1909729

Title:
  Remaining time while running "sudo apt upgrade"

Status in apt package in Ubuntu:
  Triaged

Bug description:
  Hi there,

     After running "sudo apt upgrade" in a Terminal window I noticed
  that the remaining time for 1 minute is displayed as "60s", I think to
  keep consistency this would need to be displayed as "1min 0s" since at
  some point I also saw the remaining time displayed as "5min 0s" (refer
  to the attached images). Going even further I would recommend removing
  the "0s" portion from the remaining time when applicable, e.g.
  displaying only "5min" instead of "5min 0s", "1min" instead of "1min
  0s", and so on.

  I'm using Ubuntu 20.04 (Focal Fossa).

  Best regards,

  Paco Milán.
  ---
  ProblemType: Bug
  ApportVersion: 2.20.11-0ubuntu27.12
  Architecture: amd64
  CasperMD5CheckResult: skip
  CurrentDesktop: ubuntu:GNOME
  DistroRelease: Ubuntu 20.04
  InstallationDate: Installed on 2020-03-06 (299 days ago)
  InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017)
  Package: apt 2.0.2ubuntu0.1
  PackageArchitecture: amd64
  ProcVersionSignature: Ubuntu 5.4.0-54.60-generic 5.4.65
  Tags:  focal
  Uname: Linux 5.4.0-54-generic x86_64
  UpgradeStatus: Upgraded to focal on 2020-05-10 (235 days ago)
  UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo vboxsf
  _MarkForUpload: True

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1909729/+subscriptions



More information about the foundations-bugs mailing list