Bug#986872: apt: 'apt-get upgrade' sometimes does not find an buster->bullseye upgrade path with both python-docutils and python3-docutils installed
On Tue, Apr 13, 2021 at 10:59:22AM +0200, Andreas Beckmann wrote:
> Package: apt
> Version: 1.8.2.2
> Severity: important
> User: debian-qa@lists.debian.org
> Usertags: piuparts
>
> Hi,
>
> the following packages are installed in buster:
>
> Package: python-docutils
> Version: 0.14+dfsg-4
> Depends: docutils-common (= 0.14+dfsg-4), python-roman, python:any (<< 2.8), python:any (>= 2.7~)
> Recommends: docutils-doc (= 0.14+dfsg-4), libpaper-utils, python-pil, python-pygments
>
> Package: python3-docutils
> Version: 0.14+dfsg-4
> Depends: docutils-common (= 0.14+dfsg-4), python3-roman, python3:any
> Recommends: libpaper-utils, python3-pil, python3-pygments
>
> in bullseye python-docutils is gone and the other one has
>
> Package: python3-docutils
> Version: 0.16+dfsg-3
> Depends: docutils-common (= 0.16+dfsg-3), python3-roman, python3:any
> Recommends: libpaper-utils, python3-pil, python3-pygments
>
> but 'apt-get upgrade' fails to find an upgradable set in some cases as
> can be seen in the attached log from catkin:
>
> [...]
> Dependencies are not satisfied for catkin:amd64 < 0.7.14-10 -> 0.8.9-2 @ii umU Ib >
> Keeping package catkin:amd64
> Dependencies are not satisfied for python-docutils:amd64 < 0.14+dfsg-4 @ii mK Ib >
> Keeping package python-docutils:amd64
> Dependencies are not satisfied for python-docutils:amd64 < 0.14+dfsg-4 @ii mK Ib >
> Package python-docutils:amd64 python-docutils:amd64 Depends on docutils-common:amd64 < 0.14+dfsg-4 -> 0.16+dfsg-3 @ii umU > (= 0.14+dfsg-4)
> Keeping Package docutils-common:amd64 due to Depends
> Policy breaks with upgrade of python-docutils:amd64 < 0.14+dfsg-4 @ii mK IPb >
> Policy breaks with upgrade of python-docutils:amd64 < 0.14+dfsg-4 @ii mK IPb >
> Policy breaks with upgrade of python-docutils:amd64 < 0.14+dfsg-4 @ii mK IPb >
> Policy breaks with upgrade of python-docutils:amd64 < 0.14+dfsg-4 @ii mK IPb >
>
> Some packages could not be installed. This may mean that you have
> requested an impossible situation or if you are using the unstable
> distribution that some required packages have not yet been created
> or been moved out of Incoming.
> The following information may help to resolve the situation:
>
> The following packages have unmet dependencies:
> python3-docutils : Depends: docutils-common (= 0.16+dfsg-3) but 0.14+dfsg-4 is to be installed
> E: Broken packages
>
>
> This can be 'fixed' in python3-docutils by adding an explicit
> Breaks: python-docutils (#986871)
> (there is currently an implicit Breaks due to the strictly versioned
> dependency on docutils-common).
I believe that's a sufficient answer to the bug. For analysing on the
APT side, and adding it to the list of regression tests, we need an EDSP
dump file: Set APT_EDSP_DUMP_FILENAME to a path, and run apt
install/upgrade/etc --solver dump and then attach the file.
Then you can also check if this is still an issue in 2.2, by piping
it to /usr/lib/apt/solvers/apt.
Not sure it's worth keeping a bug open in the bug tracker for solver
improvements, probably better to just dump the EDSP into the solver test
case repo.
--
debian developer - deb.li/jak | jak-linux.org - free software dev
ubuntu core developer i speak de, en
Reply to: