[Bug 2129819] Re: apt 3.0 solver accidentally removes dependencies of metapackages when removing a metapackage due to removing one of its dependencies.
Launchpad Bug Tracker
2129819 at bugs.launchpad.net
Tue Oct 28 01:41:37 UTC 2025
This bug was fixed in the package apt - 3.1.11
---------------
apt (3.1.11) unstable; urgency=medium
* Adjust test cases to treat 3.0 as default APT_SOLVER if not set
* tests: Do not skip tests for --solver internal
* test: Correctly skip tests when not using -j
* Revert "depcache: Allow changing multi-arch versions for removed siblings"
-- Julian Andres Klode <jak at debian.org> Sun, 26 Oct 2025 09:31:49
+0100
** Changed in: apt (Ubuntu Resolute)
Status: Triaged => Fix Released
--
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/2129819
Title:
apt 3.0 solver accidentally removes dependencies of metapackages when
removing a metapackage due to removing one of its dependencies.
Status in apt package in Ubuntu:
Fix Released
Status in apt source package in Questing:
Triaged
Status in apt source package in Resolute:
Fix Released
Bug description:
[Impact]
The autoremove command inadvertently removed more packages than necessary as the manual bit was not correctly moved from meta packages to their dependencies when the metapackage was being removed due to a dependency being removed.
[Test plan]
APT's rigorous integration and regression test suite will include a fix for this instance, ensuring it does not happen again.
[Where problems could occur]
The patch changes the code that marks packages for deletion to record that they were being marked for removal as a result of exhausting all options to installing them and hence backtracking.
This means we now pass FromUser=false to the MarkDelete() in more
places, which can lead to bugs like
https://salsa.debian.org/apt-
team/apt/-/merge_requests/527/diffs?commit_id=254ba81131a5360b15905dad8174cea640b8736d
Which cause the translation of the solver result to be incomplete,
potentially causing a regression in reporting quality for errors (but
not correctness).
However, while a regression in reporting quality would be unfortunate,
removing packages we should not be removing is worse.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/2129819/+subscriptions
More information about the foundations-bugs
mailing list