On 2026-12-01 18.47, Paride Legovini wrote:
> On 2026-12-01 12.45, Peter Green wrote:
>> Package: autopkgtest
>>
>> Previously apt errors in autopkgtest came with a description of where the
>> solver failed. Recently this has disappered replaced with
>> "E: External solver failed with: Unsatisfied dependencies"
> This appears to be a limitation of the apt external solver. To see it
> without autopkgtest in the equation:
>
> This gives a rich error:
>
> apt-get --simulate --solver 3.0 satisfy gcc 'Conflicts: cpp'
>
> These do not:
>
> apt-get --simulate --solver solver3 satisfy gcc 'Conflicts: cpp'
> apt-get --simulate --solver apt satisfy gcc 'Conflicts: cpp'
>
> (when used this way, apt uses the /usr/lib/apt/solvers external solvers
> from apt-utils.)
>
> I am not sure on how to make things better of course. Switching to the
> external solver (plus a shim) allowed to fix a number of autopkgtest
> specific bugs in package resolution, so this is not an easy revert.
My stab at it:
https://salsa.debian.org/apt-team/apt/-/merge_requests/665
Note that the diff drops:
# FIXME: solver3 doesn't produce nice errors in the external solver scenario
--
Paride