Hi,
On Sat, May 15, 2021 at 03:57:28PM +0200, Olaf van der Spek wrote:
> Op za 15 mei 2021 om 15:35 schreef David Kalnischkies <david@kalnischkies.de>:
> > galera-3 does not seem to have recommends, but it wasn't updated for
> > 6 months either and you haven't told us the versions involved, so
> > perhaps that's from a different repository…
>
> It is, I was testing a Debian 10 -> 11 upgrade.
> See also https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=988089
(Ahhh. The bugreport said it was testing/sid system, so I thought you
were on it for a while already, not just upgraded from stable…)
> MarkInstall mariadb-server:amd64 < 1:10.3.27-0+deb10u1 -> 1:10.5.9-1 @ii umU Ib > FU=0
> Installing mariadb-server-10.5:amd64 as Depends of mariadb-server:amd64
> MarkInstall mariadb-server-10.5:amd64 < none -> 1:10.5.9-1 @un uN Ib > FU=0
> Installing galera-4:amd64 as Depends of mariadb-server-10.5:amd64
> MarkKeep galera-3:amd64 < 25.3.25-2 -> 25.3.31-2+b1 @ii umU > FU=0
> Delayed Removing: galera-3:amd64 as upgrade is not an option for galera-4:amd64 (26.4.7-3)
> MarkInstall galera-4:amd64 < none -> 26.4.7-3 @un uN Ib > FU=0
> MarkDelete galera-3:amd64 < 25.3.25-2 | 25.3.31-2+b1 @ii umH Ib > FU=0
So upgrading mariadb will bring you galera-4 which conflicts with
galera-3. Package removals are not allowed in 'upgrade' so this mariadb
upgrade will be reverted and you will get it in the next step with
a full-upgrade – which will remove galera-3.
So, yeah, apt could potentially figure out that it could upgrade
galera-3 in this setup as it can't do the mariadb upgrade, but in
practice this will just waste a bit of time and download bandwidth as
(upgraded or not) it will be removed in the next step.
I will leave this bug open as I have some ideas how to improve this code
area a bit in general, which might or might not work and might or might
not "solve" this (future me: pkgDepCache::Is{Install,Delete}Ok overload)
but that will be bookworm material.
In regards to the mariadb versioned packages and the potential for
upgrade problems they produce I had recently talked to its maintainer,
so I doubt that will change any time soon…
https://lists.debian.org/debian-devel/2021/03/msg00239.html
Best regards
David Kalnischkies
Attachment:
signature.asc
Description: PGP signature