Indeed that is an interesting observation that successors could be
special but if the source package changes such as on a generic -> hwe
transition, it breaks again.

We do already prefer a provider that is being installed anyway, clauses
with obsolete dependencies are processed after clauses without obsolete
dependencies, however I think the global ordering is wrong for that:

dependencies are satisfied before versions are selected before changes
are marked

So when vbox is marked for upgrade/install/keep it's dependencies would
all be marked for satisfying *before* we reach the point where we mark
linux-image for upgrade.

We could bubble up the Provides across installed packages: If an
installed package has multiple versions available, we look at the
provides across the dependencies and pretend the package provides the
ones that are provided by the dependencies in all versions.

I think that's a broader robustness change and I'm inclined to agree to
it, but it requires more careful thought than doing it statically for
now

** Changed in: apt (Ubuntu)
       Status: Won't Fix => Triaged

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

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

Title:
  virtualbox-7.2 Recommends: linux-image causes APT to install arbitrary
  cloud kernel flavours

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


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

Reply via email to