[Bug 2093416] Re: 7 packages can be upgraded is printed, when they cannot

Julian Andres Klode 2093416 at bugs.launchpad.net
Fri Jan 10 16:57:48 UTC 2025


It's confusing but the first message shows you how many packages have a
newer candidate version and can be upgraded for no other reason which
maps directly to upgradable both --upgradable and ?upgradable, and
changing that to exclude phased updates would be a strange ABI break.
Note that people do use install ?upgradable to upgrade packages that are
phasing.

We don't have a good answer here, there is a wider conflict between
upgradable and will-be-upgraded, not just for phasing but also for
packages missing dependencies, or packages conflicting with installed
ones, and it's good to be aware that not all upgradable packages can or
will actually be upgraded.

All of these cases are more complex than the phased case, and we can't
handle them, so I'm wary of watering down the distinction we have now
for that one special case and potentially break people.

-- 
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/2093416

Title:
  7 packages can be upgraded is printed, when they cannot

Status in apt package in Ubuntu:
  New

Bug description:
  $ sudo apt update
  Hit:1 http://ddebs.ubuntu.com noble InRelease
  ...
  Fetched 48.8 kB in 2s (26.5 kB/s)
  Reading package lists... Done
  Building dependency tree... Done
  Reading state information... Done
  7 packages can be upgraded. Run 'apt list --upgradable' to see them.

  $ sudo apt full-upgrade
  Reading package lists... Done
  Building dependency tree... Done
  Reading state information... Done
  Calculating upgrade... Done
  The following upgrades have been deferred due to phasing:
    bind9-dnsutils bind9-host bind9-libs file-roller python3-distupgrade
    ubuntu-release-upgrader-core ubuntu-release-upgrader-gtk
  0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.

  
  Imho it shouldn't say in the first message that 7 packages can be upgraded, as they are actually cannot be upgraded as they are being deferred. I would prefer nothing being mentioned or mention that 7 are deferred.

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




More information about the foundations-bugs mailing list