It's not feasible for `apt update` to know how many packages can be
upgraded because it would need to calculate an upgrade to be able to
figure that what has been kept back. We don't want to do that really.

What we can do is hide phased updates from the count, however, keep in
mind that this creates an assymetry with the "?upgradable" pattern and
the "--upgradable" option: Phased updates *are* upgradable. You may for
example want to use `apt install ?upgradable` to force an upgrade of all
upgradable packages even the ones that are being phased.

So we wound not want to have a different upgradable count between that
and the apt update count, so we are a bit lost. The "0/36" is a bit
confusing too because it seems like you only installed 36 packages in
total.

So the "kept back" call we can't show either because it may include
other kept back packages that you need to calculate the upgrade for.

This can be solved cleanly at some point when phasing moves back to the
policy but that requires Launchpad to retain previous fully phased
package versions.

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

Title:
  apt update says that packages can be updated, but all of those are
  phased

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


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to