[Pkg-samba-maint] APT dependency resolver: Missing python3-ldb Breaks: libldb2 ?

Wagner Andre Andre.Wagner at richard-wolf.com
Tue Jul 26 09:49:40 BST 2022


Hi Phillipp,

I think your problem is quite similar to the problem Michael reported on phoronix: https://www.phoronix.com/news/Ubuntu-22.04-APT-Breaks-Things

[https://www.phoronix.net/image.php?id=2022&image=ubuntu_apt_libudev1]<https://www.phoronix.com/news/Ubuntu-22.04-APT-Breaks-Things>

An Ubuntu 22.04 LTS Fix Is Coming For A Very Annoying & Serious APT Problem - Phoronix<https://www.phoronix.com/news/Ubuntu-22.04-APT-Breaks-Things>
www.phoronix.com
Recently on Ubuntu 22.04 LTS I've noticed that after installing dependencies for a number of benchmarks that the Ubuntu Linux installation is simply broken..

In the article it was also mentioned that a fix is ready. Hope this helps.


Greetings,

André

<https://www.richard-wolf.com/en/?utm_source=signatur&utm_medium=email&utm_campaign=kampagnen&utm_content=weihnachten2021>[https://www.richard-wolf.com/mam/data/Typo3/banner/75PfC-e-mail-banner-600x150.png]<https://www.richard-wolf.com/en/75-Years-of-Richard-Wolf-GmbH/?utm_source=signatur&utm_medium=email&utm_campaign=kampagnen&utm_content=jubiläum><https://www.richard-wolf.com/en/disciplines/surgery/system-green/?utm_source=signatur&utm_medium=email&utm_campaign=kampagnen&utm_content=systemgreen>

Richard Wolf GmbH, Pforzheimer Strasse 32, 75438 Knittlingen
Managing Directors: Juergen Pfab, Juergen Steinbeck. Trade Register: Mannheim HRB 510031

Richard Wolf GmbH routinely monitors the content of e-mail sent and received via its network for the purposes of ensuring compliance with its policies and procedures. Richard Wolf GmbH is not responsible for any changes made to the message after it has been sent. Where opinions are expressed, they are not necessarily those of Richard Wolf GmbH. This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to which they are addressed. If you are not the intended addressee, or the person responsible for delivering it to them, you may not copy, forward, disclose, or otherwise use it or any part of it in any way. To do so may be unlawful. If you receive this e-mail by mistake, please advise the sender immediately.

Privacy Statement<https://www.richard-wolf.com/en/privacy-statement/>  |  Legal Information<https://www.richard-wolf.com/en/legal-information/>  |  Terms & Conditions<https://www.richard-wolf.com/en/terms-conditions/>

________________________________
From: Philipp Hahn <pmhahn at pmhahn.de>
Sent: Monday, July 25, 2022 5:04:01 PM
To: APT Development Team
Cc: Debian Samba Maintainers
Subject: APT dependency resolver: Missing python3-ldb Breaks: libldb2 ?

Hello,

I'm a DD myself, but employed by Univention GmbH. As such these are NOT
Debian packages, but our own builds. Nevertheless I want to understand
the underlying issue as I have seen it multiple times by now - even in
Debian.


Today I observed some APT behavior, which I was unable to explain at
first, but after some research make sense:

- System has old package versions installed:
> libldb2:amd64   2:2.5.1-1
> python3-ldb     2:2.5.1-1

- `apt-get install …` is used to install additional packages. Indirectly
they require newer version of
>  ...: Depends: libldb2 (>= 2:2.5.2-1)

- This aborts refusing to upgrade `python3-ldb`, which declares
> python3-ldb: Depends: libldb2 (= ${binary:Version})

- What I thinks is missing is some
> libldb2: Breaks: python3-ldb (<< ${binary:Version})


# More details

This is from running the following command:

> LC_ALL=C apt-get install \
>   -s \
>   -o Debug::pkgDepCache::Marker=yes \
>   -o Debug::pkgDepCache::AutoInstall=yes \
>   -o Debug::pkgProblemResolver=yes \
>   -o Debug::pkgProblemResolver::ShowScores=yes \
>   univention-s4-connector 2>&1 | less

which show this:

> Show Scores
> 10000 univention-s4-connector:amd64 < none -> 14.0.10-2 @un puN >
> ...
> 35 python3-ldb:amd64 < 2:2.5.1-1 | 2:2.5.2-1 @ii umH >
> ...
> 30 libldb2:amd64 < 2:2.5.1-1 | 2:2.5.2-1 @ii umH >
> ...
> 8 samba-dsdb-modules:amd64 < 2:4.16.2-1 -> 2:4.16.2-1 @ii umU Ib >


> Starting 2 pkgProblemResolver with broken count: 1
> Investigating (0) samba-dsdb-modules:amd64 < 2:4.16.2-1 -> 2:4.16.2-1 @ii umU Ib >
> Broken samba-dsdb-modules:amd64 Depends on libldb2:amd64 < 2:2.5.1-1 | 2:2.5.2-1 @ii umH > (> 2:2.5.2~)
>   Considering libldb2:amd64 30 as a solution to samba-dsdb-modules:amd64 8
>   MarkKeep samba-dsdb-modules:amd64 < 2:4.16.2-1 -> 2:4.16.2-1 @ii umU Ib > FU=0
>   Re-Instated libldb2:amd64
>   Re-Instated samba-dsdb-modules:amd64
> Investigating (1) python3-ldb:amd64 < 2:2.5.1-1 | 2:2.5.2-1 @ii umH Ib >
> Broken python3-ldb:amd64 Depends on libldb2:amd64 < 2:2.5.1-1 -> 2:2.5.2-1 @ii umU > (= 2:2.5.1-1)
>   Considering libldb2:amd64 30 as a solution to python3-ldb:amd64 35

I thinks it is here the APT decides to prioritize `python3-ldb` over
`libldb2` and prefers to not update both packages.

>   Added libldb2:amd64 to the remove list
>   Fixing python3-ldb:amd64 via keep of libldb2:amd64
>   MarkKeep libldb2:amd64 < 2:2.5.1-1A~5.0.0.202206171844 -> 2:2.5.2-1 @ii umU > FU=0

Is this a generic problem, which happens, when an upgrade is requested
to a lower-level library such as `libldb2`, but not the higher-level
package such as `python3-ldb`, when there is a same version dependency
between them?
> python3-ldb: Depends: libldb2 (= ${binary:Version})

What is the correct fix? Add this?
> libldb2: Breaks: python3-ldb (<< ${binary:Version})


LDB is here:
<https://salsa.debian.org/samba-team/ldb/-/blob/master/debian/control#L40-L42>


You can find even more details in my blog post at
<https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fpmhahn.github.io%2fapt-dependency-resolver%2f&c=E,1,mlua8YOcgbPJF51lglFHsCOQ0gS_A3gDYFcge35LqXZz1_cKzqnm3guLnrdAhAhqtbq35M6TAE8GPaYjYPiyFWQTGpj99NLNbPaqssKbzS54j6XS&typo=1>

Thanks in advance
Philipp

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-samba-maint/attachments/20220726/8a9448c0/attachment.htm>


More information about the Pkg-samba-maint mailing list