[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1113744: Solver is making weird decisions when picking one of multiple supported dependencies



On Tue, 2 Sep 2025 09:14:14 -0500
Aaron Rainbolt <arraybolt3@gmail.com> wrote:

> On Tue, 2 Sep 2025 12:37:52 +0200
> Julian Andres Klode <jak@debian.org> wrote:

*snip*

> > It would be interesting to see what --solver 3.0 does here as it is
> > _less_ greedy. Basically it goes:  
> 
> Aren't I already using the 3.0 solver? The issue is mostly in Trixie
> and Sid which I *thought* used a different solver than Bookworm
> (especially since it shows the less desirable behavior). I'll pass
> `--solver 3.0` and see what happens. I'll also try David's suggestion
> of passing the packages in a different order (both on the metapackage
> level and with the order of installing metapackages), although I fear
> that getting the order right may be impossible in some non-trivial
> situations.

So, I did a test with `--solver 3.0`, and it *did* change things for
the better - now only mate-polkit is chosen, not ukui-polkit. A whole
lot of other things are also not installed, using `--solver 3.0` didn't
add any additional packages, it only removed packages (and it removed A
LOT of packages - the test shared in the original report resulted in
apt trying to install 315 packages, but when using `--solver 3.0` apt
only tries to install 178 packages).

The full results are more than a bit long, but here's some pastebins:

`apt -s install --no-install-recommends nm-connection-editor
mate-settings-daemon`: https://termbin.com/qzr9

`apt -s install --no-install-recommends --solver 3.0
nm-connection-editor mate-settings-daemon`: https://termbin.com/y6qc

Diff of the output from the above two commands with table-formatted data
removed and the remaining data sorted alphabetically:
https://termbin.com/ke2ud

Attachment: pgpgKxTanByVb.pgp
Description: OpenPGP digital signature


Reply to: