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

Bug#990922: marked as done (apt resolves differently than apt-get: mariadb-server dist-upgrade Buster to Bullseye fails)



Your message dated Sun, 11 Jul 2021 12:28:06 +0200
with message-id <20210711102806.5vqe52ljzmrxjx2j@crossbow>
and subject line Re: Bug#990922: apt resolves differently than apt-get: mariadb-server dist-upgrade Buster to Bullseye fails
has caused the Debian Bug report #990922,
regarding apt resolves differently than apt-get: mariadb-server dist-upgrade Buster to Bullseye fails
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
990922: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=990922
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: apt
Version: 2.2.4

While investigating Bug#990708 I noticed that apt and apt-get resolves
an upgrade scenario differently. Running apt-get works correctly while
apt fails to complete the upgrade properly.

On a Buster system that has mariadb-server (src:mariadb-10.3) apt-get
will correctly upgrade to new mariadb-server (src:mariadb-10.5)
version. However on apt, the resolver ends up uninstalling
mariadb-server.

This seems like a bug? Shouldn't apt always resolve like apt-get does?
Or do we in the future need to duplicate all of your upgrade tests and
piuparts to run both apt-get and apt?

See full log:
- apt-get success:
https://salsa.debian.org/mariadb-team/mariadb-10.5/-/jobs/1748579
- s/apt-get/apt/:
https://salsa.debian.org/mariadb-team/mariadb-10.5/-/commit/c8ed387f91be4f7a98ccb768935a4725a9f10cd4
- apt fail: https://salsa.debian.org/mariadb-team/mariadb-10.5/-/jobs/1750156

Attached apt-get.log and apt.log

$ diff -u apt-get.log apt.log
--- apt-get.log 2021-07-10 20:48:56.548202335 -0700
+++ apt.log 2021-07-10 20:47:52.194973602 -0700
@@ -7,205 +7,124 @@
-$ apt-get upgrade -y -o Debug::pkgProblemResolver=1
+$ apt upgrade -y -o Debug::pkgProblemResolver=1
+WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
 Reading package lists...
 Building dependency tree...
 Reading state information...
 Calculating upgrade...Entering ResolveByKeep
-  Dependencies are not satisfied for perl-base:amd64 <
5.28.1-6+deb10u1 -> 5.32.1-4 @ii umU Ib >
-Keeping package perl-base:amd64
-  Dependencies are not satisfied for login:amd64 < 1:4.5-1.1 ->
1:4.8.1-1 @ii umU Ib >
-Keeping package login:amd64
-  Dependencies are not satisfied for util-linux:amd64 < 2.33.1-0.1 ->
2.36.1-7 @ii umU Ib >
-Keeping package util-linux:amd64
-  Dependencies are not satisfied for apt:amd64 < 1.8.2.3 -> 2.2.4 @ii
umU NPb Ib >
-Keeping package apt:amd64
-  Dependencies are not satisfied for e2fsprogs:amd64 <
1.44.5-1+deb10u3 -> 1.46.2-2 @ii umU NPb Ib >
-Keeping package e2fsprogs:amd64
-  Dependencies are not satisfied for e2fsprogs:amd64 <
1.44.5-1+deb10u3 | 1.46.2-2 @ii umH NPb Ib >
-Package e2fsprogs:amd64 e2fsprogs:amd64 PreDepends on
libext2fs2:amd64 < 1.44.5-1+deb10u3 -> 1.46.2-2 @ii umU > (=
1.44.5-1+deb10u3)
-  Keeping Package libext2fs2:amd64 due to PreDepends
-  Dependencies are not satisfied for libc6:amd64 < 2.28-10 -> 2.31-12
@ii umU Ib >
-Keeping package libc6:amd64
-  Dependencies are not satisfied for libc-bin:amd64 < 2.28-10 ->
2.31-12 @ii umU NPb Ib >
-Keeping package libc-bin:amd64
-  Dependencies are not satisfied for libselinux1:amd64 < 2.8-1+b1 ->
3.1-3 @ii umU Ib >
-Keeping package libselinux1:amd64
-  Dependencies are not satisfied for dpkg:amd64 < 1.19.7 -> 1.20.9 @ii umU Ib >
-Keeping package dpkg:amd64
-  Dependencies are not satisfied for tar:amd64 < 1.30+dfsg-6 ->
1.34+dfsg-1 @ii umU Ib >
-Keeping package tar:amd64
-  Dependencies are not satisfied for findutils:amd64 <
4.6.0+git+20190209-2 -> 4.8.0-1 @ii umU Ib >
-Keeping package findutils:amd64
-  Dependencies are not satisfied for coreutils:amd64 < 8.30-3 ->
8.32-4+b1 @ii umU Ib >
-Keeping package coreutils:amd64
-  Dependencies are not satisfied for libsystemd0:amd64 <
241-7~deb10u7 -> 247.3-5 @ii umU Ib >
-Keeping package libsystemd0:amd64
-  Dependencies are not satisfied for libmount1:amd64 < 2.33.1-0.1 ->
2.36.1-7 @ii umU Ib >
-Keeping package libmount1:amd64
-  Dependencies are not satisfied for mount:amd64 < 2.33.1-0.1 ->
2.36.1-7 @ii umU Ib >
-Keeping package mount:amd64
-  Dependencies are not satisfied for libpam-modules:amd64 < 1.3.1-5
-> 1.4.0-7 @ii umU Ib >
-Keeping package libpam-modules:amd64
-  Dependencies are not satisfied for libpam-modules:amd64 < 1.3.1-5 |
1.4.0-7 @ii umH Ib >
-Package libpam-modules:amd64 libpam-modules:amd64 PreDepends on
libpam-modules-bin:amd64 < 1.3.1-5 -> 1.4.0-7 @ii umU Ib > (= 1.3.1-5)
-  Keeping Package libpam-modules-bin:amd64 due to PreDepends
-  Dependencies are not satisfied for libstdc++6:amd64 < 8.3.0-6 ->
10.2.1-6 @ii umU Ib >
-Keeping package libstdc++6:amd64
-  Dependencies are not satisfied for libgnutls30:amd64 <
3.6.7-4+deb10u7 -> 3.7.1-5 @ii umU Ib >
-Keeping package libgnutls30:amd64
-  Dependencies are not satisfied for libudev1:amd64 < 241-7~deb10u7
-> 247.3-5 @ii umU Ib >
-Keeping package libudev1:amd64
-  Dependencies are not satisfied for perl:amd64 < 5.28.1-6+deb10u1 ->
5.32.1-4 @ii umU Ib >
-Keeping package perl:amd64
-  Dependencies are not satisfied for passwd:amd64 < 1:4.5-1.1 ->
1:4.8.1-1 @ii umU Ib >
-Keeping package passwd:amd64
-  Dependencies are not satisfied for libsemanage1:amd64 < 2.8-2 ->
3.1-1+b2 @ii umU Ib >
-Keeping package libsemanage1:amd64
-  Dependencies are not satisfied for libsemanage1:amd64 < 2.8-2 |
3.1-1+b2 @ii umH Ib >
-Package libsemanage1:amd64 libsemanage1:amd64 Depends on
libsemanage-common:amd64 < 2.8-2 -> 3.1-1 @ii umU > (= 2.8-2)
-  Keeping Package libsemanage-common:amd64 due to Depends
-  Dependencies are not satisfied for libp11-kit0:amd64 <
0.23.15-2+deb10u1 -> 0.23.22-1 @ii umU Ib >
-Keeping package libp11-kit0:amd64
-  Dependencies are not satisfied for mawk:amd64 < 1.3.3-17+b3 ->
1.3.4.20200120-2 @ii umU Ib >
-Keeping package mawk:amd64
-  Dependencies are not satisfied for libdbi-perl:amd64 <
1.642-1+deb10u2 -> 1.643-3+b1 @ii umU Ib >
-Keeping package libdbi-perl:amd64
-  Dependencies are not satisfied for iproute2:amd64 <
4.20.0-2+deb10u1 -> 5.10.0-4 @ii umU NPb Ib >
-Keeping package iproute2:amd64
-  Dependencies are not satisfied for libhtml-parser-perl:amd64 <
3.72-3+b3 -> 3.75-1+b1 @ii umU Ib >
-Keeping package libhtml-parser-perl:amd64
-  Dependencies are not satisfied for lsof:amd64 < 4.91+dfsg-1 ->
4.93.2+dfsg-1.1 @ii umU Ib >
-Keeping package lsof:amd64
-  Dependencies are not satisfied for libwrap0:amd64 < 7.6.q-28 ->
7.6.q-31 @ii umU Ib >
-Keeping package libwrap0:amd64
-  Dependencies are not satisfied for libfcgi-perl:amd64 < 0.78-2+b3
-> 0.79+ds-2 @ii umU Ib >
-Keeping package libfcgi-perl:amd64
-  Dependencies are not satisfied for libhttp-message-perl:amd64 <
6.18-1 -> 6.28-1 @ii umU Ib >
-Keeping package libhttp-message-perl:amd64
-  Dependencies are not satisfied for libterm-readkey-perl:amd64 <
2.38-1 -> 2.38-1+b2 @ii umU Ib >
-Keeping package libterm-readkey-perl:amd64
-  Dependencies are not satisfied for galera-3:amd64 < 25.3.25-2 ->
25.3.31-2+b1 @ii umU Ib >
-Keeping package galera-3:amd64
-  Dependencies are not satisfied for libdbd-mysql-perl:amd64 <
4.050-2 -> 4.050-3+b1 @ii umU Ib >
-Keeping package libdbd-mysql-perl:amd64
-  Dependencies are not satisfied for rsync:amd64 < 3.1.3-6 -> 3.2.3-4
@ii umU Ib >
-Keeping package rsync:amd64
-  Dependencies are not satisfied for gawk:amd64 < 1:4.2.1+dfsg-1 ->
1:5.1.0-1 @ii umU Ib >
-Keeping package gawk:amd64
+  Dependencies are not satisfied for mariadb-client-core-10.5:amd64 <
none -> 1:10.5.10-2 @un uN Ib >
+Keeping package mariadb-client-core-10.5:amd64
+  Dependencies are not satisfied for mariadb-client-10.5:amd64 < none
-> 1:10.5.10-2 @un uN Ib >
+Keeping package mariadb-client-10.5:amd64
+  Dependencies are not satisfied for galera-4:amd64 < none ->
26.4.8-1 @un uN Ib >
+Keeping package galera-4:amd64
+  Dependencies are not satisfied for mariadb-server-10.5:amd64 < none
-> 1:10.5.10-2 @un uN Ib >
+Keeping package mariadb-server-10.5:amd64
   Dependencies are not satisfied for mariadb-server:amd64 <
1:10.3.29-0+deb10u1 -> 1:10.5.10-2 @ii umU Ib >
 Keeping package mariadb-server:amd64
+  Dependencies are not satisfied for mariadb-server-core-10.5:amd64 <
none -> 1:10.5.10-2 @un uN Ib >
+Keeping package mariadb-server-core-10.5:amd64
+The following packages were automatically installed and are no longer required:
+  libapt-pkg5.0 libffi6 libhogweed4 libnettle6 libperl5.28 libreadline7
+  perl-modules-5.28
+Use 'apt autoremove' to remove them.
+The following NEW packages will be installed:
+  bsdextrautils gcc-10-base krb5-locales libapt-pkg6.0 libbpf0 libbsd0
+  libclone-perl libcrypt1 libfcgi-bin libfcgi0ldbl libffi7 libgcc-s1
+  libgssapi-krb5-2 libhogweed6 libk5crypto3 libkeyutils1 libkrb5-3
+  libkrb5support0 libmd0 libnettle8 libnsl2 libnss-nis libnss-nisplus
+  libpcre2-8-0 libperl5.32 libreadline8 libtirpc-common libtirpc3 libxxhash0
+  logsave perl-modules-5.32
 The following packages have been kept back:
-  apt coreutils dpkg e2fsprogs findutils galera-3 gawk iproute2 libc-bin libc6
-  libdbd-mysql-perl libdbi-perl libext2fs2 libfcgi-perl libgnutls30
-  libhtml-parser-perl libhttp-message-perl libmount1 libp11-kit0
-  libpam-modules libpam-modules-bin libselinux1 libsemanage-common
-  libsemanage1 libstdc++6 libsystemd0 libterm-readkey-perl libudev1 libwrap0
-  login lsof mariadb-server mawk mount passwd perl perl-base rsync tar
-  util-linux
+  galera-3 mariadb-server
 The following packages will be upgraded:
-  base-files base-passwd bash bsdutils dash debconf debian-archive-keyring
-  debianutils diffutils fdisk gpgv grep gzip hostname init-system-helpers
-  iputils-ping libacl1 libaio1 libattr1 libaudit-common libaudit1 libblkid1
-  libbz2-1.0 libcap-ng0 libcap2 libcap2-bin libcgi-fast-perl libcgi-pm-perl
-  libcom-err2 libconfig-inifiles-perl libdb5.3 libdebconfclient0 libelf1
-  libencode-locale-perl libfdisk1 libgcrypt20 libgdbm-compat4 libgdbm6
-  libgmp10 libgpg-error0 libgpm2 libhtml-tagset-perl libhtml-template-perl
-  libhttp-date-perl libidn2-0 libio-html-perl liblwp-mediatypes-perl liblz4-1
-  liblzma5 libmariadb3 libmnl0 libmpfr6 libncurses6 libncursesw6
-  libpam-runtime libpam0g libpcre3 libpopt0 libseccomp2 libsepol1 libsigsegv2
-  libsmartcols1 libsnappy1v5 libss2 libssl1.1 libtasn1-6 libtimedate-perl
-  libtinfo6 libunistring2 liburi-perl libuuid1 libxtables12 libzstd1 lsb-base
-  mariadb-common mysql-common ncurses-base ncurses-bin netbase psmisc
-  readline-common socat sysvinit-utils tzdata zlib1g
-85 upgraded, 0 newly installed, 0 to remove and 40 not upgraded.
+  apt base-files base-passwd bash bsdutils coreutils dash debconf
+  debian-archive-keyring debianutils diffutils dpkg e2fsprogs fdisk findutils
+  gawk gpgv grep gzip hostname init-system-helpers iproute2 iputils-ping
+  libacl1 libaio1 libattr1 libaudit-common libaudit1 libblkid1 libbz2-1.0
+  libc-bin libc6 libcap-ng0 libcap2 libcap2-bin libcgi-fast-perl
+  libcgi-pm-perl libcom-err2 libconfig-inifiles-perl libdb5.3
+  libdbd-mysql-perl libdbi-perl libdebconfclient0 libelf1
+  libencode-locale-perl libext2fs2 libfcgi-perl libfdisk1 libgcrypt20
+  libgdbm-compat4 libgdbm6 libgmp10 libgnutls30 libgpg-error0 libgpm2
+  libhtml-parser-perl libhtml-tagset-perl libhtml-template-perl
+  libhttp-date-perl libhttp-message-perl libidn2-0 libio-html-perl
+  liblwp-mediatypes-perl liblz4-1 liblzma5 libmariadb3 libmnl0 libmount1
+  libmpfr6 libncurses6 libncursesw6 libp11-kit0 libpam-modules
+  libpam-modules-bin libpam-runtime libpam0g libpcre3 libpopt0 libseccomp2
+  libselinux1 libsemanage-common libsemanage1 libsepol1 libsigsegv2
+  libsmartcols1 libsnappy1v5 libss2 libssl1.1 libstdc++6 libsystemd0
+  libtasn1-6 libterm-readkey-perl libtimedate-perl libtinfo6 libudev1
+  libunistring2 liburi-perl libuuid1 libwrap0 libxtables12 libzstd1 login
+  lsb-base lsof mariadb-common mawk mount mysql-common ncurses-base
+  ncurses-bin netbase passwd perl perl-base psmisc readline-common rsync socat
+  sysvinit-utils tar tzdata util-linux zlib1g
+123 upgraded, 31 newly installed, 0 to remove and 2 not upgraded.

-$ apt-get dist-upgrade -y -o Debug::pkgProblemResolver=1
+$ apt dist-upgrade -y -o Debug::pkgProblemResolver=1
+WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
 Reading package lists...
 Building dependency tree...
 Reading state information...
-Calculating upgrade...Starting pkgProblemResolver with broken count: 10
-Starting 2 pkgProblemResolver with broken count: 10
+Calculating upgrade...Starting pkgProblemResolver with broken count: 8
+Starting 2 pkgProblemResolver with broken count: 8
+Investigating (0) mariadb-server-core-10.5:amd64 < none ->
1:10.5.10-2 @un uN Ib >
+Broken mariadb-server-core-10.5:amd64 Conflicts on
virtual-mysql-server-core:amd64 < none @un H >
+  Considering mariadb-server-core-10.3:amd64 -3 as a solution to
mariadb-server-core-10.5:amd64 -1
+  Added mariadb-server-core-10.3:amd64 to the remove list
+Broken mariadb-server-core-10.5:amd64 Breaks on
mariadb-server-10.3:amd64 < 1:10.3.29-0+deb10u1 @ii mK Ib >
+  Considering mariadb-server-10.3:amd64 -5 as a solution to
mariadb-server-core-10.5:amd64 -1
+  Added mariadb-server-10.3:amd64 to the remove list
+Broken mariadb-server-core-10.5:amd64 Breaks on
mariadb-server-core-10.3:amd64 < 1:10.3.29-0+deb10u1 @ii mK Ib >
+  Considering mariadb-server-core-10.3:amd64 -3 as a solution to
mariadb-server-core-10.5:amd64 -1
+  Added mariadb-server-core-10.3:amd64 to the remove list
+  Fixing mariadb-server-core-10.5:amd64 via remove of
mariadb-server-core-10.3:amd64
+  Fixing mariadb-server-core-10.5:amd64 via remove of mariadb-server-10.3:amd64
+  Fixing mariadb-server-core-10.5:amd64 via remove of
mariadb-server-core-10.3:amd64
+Investigating (0) mariadb-server-10.5:amd64 < none -> 1:10.5.10-2 @un uN Ib >
+Broken mariadb-server-10.5:amd64 Depends on galera-4:amd64 < none |
26.4.8-1 @un uH > (>= 26.4)
+  Considering galera-4:amd64 0 as a solution to mariadb-server-10.5:amd64 -1
+  Holding Back mariadb-server-10.5:amd64 rather than change galera-4:amd64
 Investigating (0) mariadb-client-core-10.5:amd64 < none ->
1:10.5.10-2 @un uN Ib >
 Broken mariadb-client-core-10.5:amd64 Conflicts on
virtual-mysql-client-core:amd64 < none @un H >
-  Considering mariadb-client-core-10.3:amd64 -3 as a solution to
mariadb-client-core-10.5:amd64 0
+  Considering mariadb-client-core-10.3:amd64 -4 as a solution to
mariadb-client-core-10.5:amd64 -1
   Added mariadb-client-core-10.3:amd64 to the remove list
 Broken mariadb-client-core-10.5:amd64 Breaks on
mariadb-client-core-10.3:amd64 < 1:10.3.29-0+deb10u1 @ii mK Ib >
-  Considering mariadb-client-core-10.3:amd64 -3 as a solution to
mariadb-client-core-10.5:amd64 0
+  Considering mariadb-client-core-10.3:amd64 -4 as a solution to
mariadb-client-core-10.5:amd64 -1
   Added mariadb-client-core-10.3:amd64 to the remove list
   Fixing mariadb-client-core-10.5:amd64 via remove of
mariadb-client-core-10.3:amd64
   Fixing mariadb-client-core-10.5:amd64 via remove of
mariadb-client-core-10.3:amd64
 Investigating (0) mariadb-client-10.5:amd64 < none -> 1:10.5.10-2 @un uN Ib >
 Broken mariadb-client-10.5:amd64 Conflicts on
virtual-mysql-client:amd64 < none @un H >
-  Considering mariadb-client-10.3:amd64 -2 as a solution to
mariadb-client-10.5:amd64 0
+  Considering mariadb-client-10.3:amd64 -3 as a solution to
mariadb-client-10.5:amd64 -1
   Added mariadb-client-10.3:amd64 to the remove list
 Broken mariadb-client-10.5:amd64 Breaks on mariadb-client-10.3:amd64
< 1:10.3.29-0+deb10u1 @ii mK Ib >
-  Considering mariadb-client-10.3:amd64 -2 as a solution to
mariadb-client-10.5:amd64 0
+  Considering mariadb-client-10.3:amd64 -3 as a solution to
mariadb-client-10.5:amd64 -1
   Added mariadb-client-10.3:amd64 to the remove list
   Fixing mariadb-client-10.5:amd64 via remove of mariadb-client-10.3:amd64
   Fixing mariadb-client-10.5:amd64 via remove of mariadb-client-10.3:amd64
-Investigating (0) galera-4:amd64 < none -> 26.4.8-1 @un uN Ib >
-Broken galera-4:amd64 Conflicts on galera:amd64 < none @un H >
-  Conflicts//Breaks against version 25.3.25-2 for galera-3 but that
is not InstVer, ignoring
-  Considering galera-3:amd64 -1 as a solution to galera-4:amd64 0
-  Added galera-3:amd64 to the remove list
-Broken galera-4:amd64 Conflicts on galera-3:amd64 < 25.3.25-2 ->
25.3.31-2+b1 @ii umU Ib >
-  Considering galera-3:amd64 -1 as a solution to galera-4:amd64 0
-  Added galera-3:amd64 to the remove list
-  Conflicts//Breaks against version 25.3.25-2 for galera-3 but that
is not InstVer, ignoring
-Broken galera-4:amd64 Breaks on galera:amd64 < none @un H >
-  Conflicts//Breaks against version 25.3.25-2 for galera-3 but that
is not InstVer, ignoring
-  Considering galera-3:amd64 -1 as a solution to galera-4:amd64 0
-  Added galera-3:amd64 to the remove list
-Broken galera-4:amd64 Breaks on galera-3:amd64 < 25.3.25-2 ->
25.3.31-2+b1 @ii umU Ib >
-  Considering galera-3:amd64 -1 as a solution to galera-4:amd64 0
-  Added galera-3:amd64 to the remove list
-  Conflicts//Breaks against version 25.3.25-2 for galera-3 but that
is not InstVer, ignoring
-  Fixing galera-4:amd64 via remove of galera-3:amd64
-  Fixing galera-4:amd64 via remove of galera-3:amd64
-  Fixing galera-4:amd64 via remove of galera-3:amd64
-  Fixing galera-4:amd64 via remove of galera-3:amd64
-Investigating (0) mariadb-server-10.5:amd64 < none -> 1:10.5.10-2 @un uN Ib >
-Broken mariadb-server-10.5:amd64 Conflicts on
virtual-mysql-server:amd64 < none @un H >
-  Considering mariadb-server-10.3:amd64 -4 as a solution to
mariadb-server-10.5:amd64 0
-  Added mariadb-server-10.3:amd64 to the remove list
-Broken mariadb-server-10.5:amd64 Breaks on mariadb-server-10.3:amd64
< 1:10.3.29-0+deb10u1 @ii mK Ib >
-  Considering mariadb-server-10.3:amd64 -4 as a solution to
mariadb-server-10.5:amd64 0
-  Added mariadb-server-10.3:amd64 to the remove list
-  Fixing mariadb-server-10.5:amd64 via remove of mariadb-server-10.3:amd64
-  Fixing mariadb-server-10.5:amd64 via remove of mariadb-server-10.3:amd64
-Investigating (0) mariadb-server-core-10.5:amd64 < none ->
1:10.5.10-2 @un uN Ib >
-Broken mariadb-server-core-10.5:amd64 Conflicts on
virtual-mysql-server-core:amd64 < none @un H >
-  Considering mariadb-server-core-10.3:amd64 -2 as a solution to
mariadb-server-core-10.5:amd64 0
-  Added mariadb-server-core-10.3:amd64 to the remove list
-Broken mariadb-server-core-10.5:amd64 Breaks on
mariadb-server-core-10.3:amd64 < 1:10.3.29-0+deb10u1 @ii mK Ib >
-  Considering mariadb-server-core-10.3:amd64 -2 as a solution to
mariadb-server-core-10.5:amd64 0
-  Added mariadb-server-core-10.3:amd64 to the remove list
-  Fixing mariadb-server-core-10.5:amd64 via remove of
mariadb-server-core-10.3:amd64
-  Fixing mariadb-server-core-10.5:amd64 via remove of
mariadb-server-core-10.3:amd64
+Investigating (1) mariadb-server:amd64 < 1:10.3.29-0+deb10u1 ->
1:10.5.10-2 @ii umU Ib >
+Broken mariadb-server:amd64 Depends on mariadb-server-10.5:amd64 <
none | 1:10.5.10-2 @un uH > (>= 1:10.5.10-2)
+  Considering mariadb-server-10.5:amd64 -1 as a solution to
mariadb-server:amd64 0
+  Removing mariadb-server:amd64 rather than change mariadb-server-10.5:amd64
 Done
 The following packages were automatically installed and are no longer required:
-  fdisk libapt-pkg5.0 libfdisk1 libffi6 libhogweed4 libnettle6 libperl5.28
-  libreadline5 libreadline7 perl-modules-5.28
+  fdisk galera-3 gcc-8-base libaio1 libapt-pkg5.0 libcgi-fast-perl
+  libcgi-pm-perl libclone-perl libconfig-inifiles-perl libdbd-mysql-perl
+  libdbi-perl libencode-locale-perl libfcgi-bin libfcgi-perl libfcgi0ldbl
+  libfdisk1 libffi6 libgcc1 libgdbm-compat4 libgdbm6 libgpm2 libhogweed4
+  libhtml-parser-perl libhtml-tagset-perl libhtml-template-perl
+  libhttp-date-perl libhttp-message-perl libio-html-perl
+  liblwp-mediatypes-perl libmariadb3 libncurses6 libncursesw6 libnettle6
+  libperl5.28 libperl5.32 libpopt0 libreadline5 libreadline7 libsnappy1v5
+  libterm-readkey-perl libtimedate-perl liburi-perl libwrap0 lsof
+  mariadb-common mysql-common netbase perl perl-modules-5.28 perl-modules-5.32
+  psmisc rsync socat
 Use 'apt autoremove' to remove them.
 The following packages will be REMOVED:
-  galera-3 mariadb-client-10.3 mariadb-client-core-10.3 mariadb-server-10.3
-  mariadb-server-core-10.3
-The following NEW packages will be installed:
-  galera-4 gcc-10-base krb5-locales libapt-pkg6.0 libbpf0 libbsd0
-  libclone-perl libcrypt1 libedit2 libfcgi-bin libfcgi0ldbl libffi7 libgcc-s1
-  libgssapi-krb5-2 libhogweed6 libk5crypto3 libkeyutils1 libkrb5-3
-  libkrb5support0 libmd0 libnettle8 libnsl2 libnss-nis libnss-nisplus
-  libpcre2-8-0 libperl5.32 libprocps8 libreadline8 libtirpc-common libtirpc3
-  libxxhash0 logsave mariadb-client-10.5 mariadb-client-core-10.5
-  mariadb-server-10.5 mariadb-server-core-10.5 perl-modules-5.32 procps
+  mariadb-client-10.3 mariadb-client-core-10.3 mariadb-server
+  mariadb-server-10.3 mariadb-server-core-10.3
 The following packages will be upgraded:
-  apt coreutils dpkg e2fsprogs findutils gawk iproute2 libc-bin libc6
-  libdbd-mysql-perl libdbi-perl libext2fs2 libfcgi-perl libgnutls30
-  libhtml-parser-perl libhttp-message-perl libmount1 libp11-kit0
-  libpam-modules libpam-modules-bin libselinux1 libsemanage-common
-  libsemanage1 libstdc++6 libsystemd0 libterm-readkey-perl libudev1 libwrap0
-  login lsof mariadb-server mawk mount passwd perl perl-base rsync tar
-  util-linux
-39 upgraded, 38 newly installed, 5 to remove and 0 not upgraded.
-
+  galera-3
+1 upgraded, 0 newly installed, 5 to remove and 0 not upgraded.
$ sed 's/buster/bullseye/g' -i /etc/apt/sources.list
$ sed '/security/d' -i /etc/apt/sources.list
$ cat /etc/apt/sources.list
# deb http://snapshot.debian.org/archive/debian/20210621T000000Z bullseye main
deb http://deb.debian.org/debian bullseye main
# deb http://snapshot.debian.org/archive/debian/20210621T000000Z bullseye-updates main
deb http://deb.debian.org/debian bullseye-updates main
$ apt update

$ apt-get upgrade -y -o Debug::pkgProblemResolver=1
Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...Entering ResolveByKeep
  Dependencies are not satisfied for perl-base:amd64 < 5.28.1-6+deb10u1 -> 5.32.1-4 @ii umU Ib >
Keeping package perl-base:amd64
  Dependencies are not satisfied for login:amd64 < 1:4.5-1.1 -> 1:4.8.1-1 @ii umU Ib >
Keeping package login:amd64
  Dependencies are not satisfied for util-linux:amd64 < 2.33.1-0.1 -> 2.36.1-7 @ii umU Ib >
Keeping package util-linux:amd64
  Dependencies are not satisfied for apt:amd64 < 1.8.2.3 -> 2.2.4 @ii umU NPb Ib >
Keeping package apt:amd64
  Dependencies are not satisfied for e2fsprogs:amd64 < 1.44.5-1+deb10u3 -> 1.46.2-2 @ii umU NPb Ib >
Keeping package e2fsprogs:amd64
  Dependencies are not satisfied for e2fsprogs:amd64 < 1.44.5-1+deb10u3 | 1.46.2-2 @ii umH NPb Ib >
Package e2fsprogs:amd64 e2fsprogs:amd64 PreDepends on libext2fs2:amd64 < 1.44.5-1+deb10u3 -> 1.46.2-2 @ii umU > (= 1.44.5-1+deb10u3)
  Keeping Package libext2fs2:amd64 due to PreDepends
  Dependencies are not satisfied for libc6:amd64 < 2.28-10 -> 2.31-12 @ii umU Ib >
Keeping package libc6:amd64
  Dependencies are not satisfied for libc-bin:amd64 < 2.28-10 -> 2.31-12 @ii umU NPb Ib >
Keeping package libc-bin:amd64
  Dependencies are not satisfied for libselinux1:amd64 < 2.8-1+b1 -> 3.1-3 @ii umU Ib >
Keeping package libselinux1:amd64
  Dependencies are not satisfied for dpkg:amd64 < 1.19.7 -> 1.20.9 @ii umU Ib >
Keeping package dpkg:amd64
  Dependencies are not satisfied for tar:amd64 < 1.30+dfsg-6 -> 1.34+dfsg-1 @ii umU Ib >
Keeping package tar:amd64
  Dependencies are not satisfied for findutils:amd64 < 4.6.0+git+20190209-2 -> 4.8.0-1 @ii umU Ib >
Keeping package findutils:amd64
  Dependencies are not satisfied for coreutils:amd64 < 8.30-3 -> 8.32-4+b1 @ii umU Ib >
Keeping package coreutils:amd64
  Dependencies are not satisfied for libsystemd0:amd64 < 241-7~deb10u7 -> 247.3-5 @ii umU Ib >
Keeping package libsystemd0:amd64
  Dependencies are not satisfied for libmount1:amd64 < 2.33.1-0.1 -> 2.36.1-7 @ii umU Ib >
Keeping package libmount1:amd64
  Dependencies are not satisfied for mount:amd64 < 2.33.1-0.1 -> 2.36.1-7 @ii umU Ib >
Keeping package mount:amd64
  Dependencies are not satisfied for libpam-modules:amd64 < 1.3.1-5 -> 1.4.0-7 @ii umU Ib >
Keeping package libpam-modules:amd64
  Dependencies are not satisfied for libpam-modules:amd64 < 1.3.1-5 | 1.4.0-7 @ii umH Ib >
Package libpam-modules:amd64 libpam-modules:amd64 PreDepends on libpam-modules-bin:amd64 < 1.3.1-5 -> 1.4.0-7 @ii umU Ib > (= 1.3.1-5)
  Keeping Package libpam-modules-bin:amd64 due to PreDepends
  Dependencies are not satisfied for libstdc++6:amd64 < 8.3.0-6 -> 10.2.1-6 @ii umU Ib >
Keeping package libstdc++6:amd64
  Dependencies are not satisfied for libgnutls30:amd64 < 3.6.7-4+deb10u7 -> 3.7.1-5 @ii umU Ib >
Keeping package libgnutls30:amd64
  Dependencies are not satisfied for libudev1:amd64 < 241-7~deb10u7 -> 247.3-5 @ii umU Ib >
Keeping package libudev1:amd64
  Dependencies are not satisfied for perl:amd64 < 5.28.1-6+deb10u1 -> 5.32.1-4 @ii umU Ib >
Keeping package perl:amd64
  Dependencies are not satisfied for passwd:amd64 < 1:4.5-1.1 -> 1:4.8.1-1 @ii umU Ib >
Keeping package passwd:amd64
  Dependencies are not satisfied for libsemanage1:amd64 < 2.8-2 -> 3.1-1+b2 @ii umU Ib >
Keeping package libsemanage1:amd64
  Dependencies are not satisfied for libsemanage1:amd64 < 2.8-2 | 3.1-1+b2 @ii umH Ib >
Package libsemanage1:amd64 libsemanage1:amd64 Depends on libsemanage-common:amd64 < 2.8-2 -> 3.1-1 @ii umU > (= 2.8-2)
  Keeping Package libsemanage-common:amd64 due to Depends
  Dependencies are not satisfied for libp11-kit0:amd64 < 0.23.15-2+deb10u1 -> 0.23.22-1 @ii umU Ib >
Keeping package libp11-kit0:amd64
  Dependencies are not satisfied for mawk:amd64 < 1.3.3-17+b3 -> 1.3.4.20200120-2 @ii umU Ib >
Keeping package mawk:amd64
  Dependencies are not satisfied for libdbi-perl:amd64 < 1.642-1+deb10u2 -> 1.643-3+b1 @ii umU Ib >
Keeping package libdbi-perl:amd64
  Dependencies are not satisfied for iproute2:amd64 < 4.20.0-2+deb10u1 -> 5.10.0-4 @ii umU NPb Ib >
Keeping package iproute2:amd64
  Dependencies are not satisfied for libhtml-parser-perl:amd64 < 3.72-3+b3 -> 3.75-1+b1 @ii umU Ib >
Keeping package libhtml-parser-perl:amd64
  Dependencies are not satisfied for lsof:amd64 < 4.91+dfsg-1 -> 4.93.2+dfsg-1.1 @ii umU Ib >
Keeping package lsof:amd64
  Dependencies are not satisfied for libwrap0:amd64 < 7.6.q-28 -> 7.6.q-31 @ii umU Ib >
Keeping package libwrap0:amd64
  Dependencies are not satisfied for libfcgi-perl:amd64 < 0.78-2+b3 -> 0.79+ds-2 @ii umU Ib >
Keeping package libfcgi-perl:amd64
  Dependencies are not satisfied for libhttp-message-perl:amd64 < 6.18-1 -> 6.28-1 @ii umU Ib >
Keeping package libhttp-message-perl:amd64
  Dependencies are not satisfied for libterm-readkey-perl:amd64 < 2.38-1 -> 2.38-1+b2 @ii umU Ib >
Keeping package libterm-readkey-perl:amd64
  Dependencies are not satisfied for galera-3:amd64 < 25.3.25-2 -> 25.3.31-2+b1 @ii umU Ib >
Keeping package galera-3:amd64
  Dependencies are not satisfied for libdbd-mysql-perl:amd64 < 4.050-2 -> 4.050-3+b1 @ii umU Ib >
Keeping package libdbd-mysql-perl:amd64
  Dependencies are not satisfied for rsync:amd64 < 3.1.3-6 -> 3.2.3-4 @ii umU Ib >
Keeping package rsync:amd64
  Dependencies are not satisfied for gawk:amd64 < 1:4.2.1+dfsg-1 -> 1:5.1.0-1 @ii umU Ib >
Keeping package gawk:amd64
  Dependencies are not satisfied for mariadb-server:amd64 < 1:10.3.29-0+deb10u1 -> 1:10.5.10-2 @ii umU Ib >
Keeping package mariadb-server:amd64
The following packages have been kept back:
  apt coreutils dpkg e2fsprogs findutils galera-3 gawk iproute2 libc-bin libc6
  libdbd-mysql-perl libdbi-perl libext2fs2 libfcgi-perl libgnutls30
  libhtml-parser-perl libhttp-message-perl libmount1 libp11-kit0
  libpam-modules libpam-modules-bin libselinux1 libsemanage-common
  libsemanage1 libstdc++6 libsystemd0 libterm-readkey-perl libudev1 libwrap0
  login lsof mariadb-server mawk mount passwd perl perl-base rsync tar
  util-linux
The following packages will be upgraded:
  base-files base-passwd bash bsdutils dash debconf debian-archive-keyring
  debianutils diffutils fdisk gpgv grep gzip hostname init-system-helpers
  iputils-ping libacl1 libaio1 libattr1 libaudit-common libaudit1 libblkid1
  libbz2-1.0 libcap-ng0 libcap2 libcap2-bin libcgi-fast-perl libcgi-pm-perl
  libcom-err2 libconfig-inifiles-perl libdb5.3 libdebconfclient0 libelf1
  libencode-locale-perl libfdisk1 libgcrypt20 libgdbm-compat4 libgdbm6
  libgmp10 libgpg-error0 libgpm2 libhtml-tagset-perl libhtml-template-perl
  libhttp-date-perl libidn2-0 libio-html-perl liblwp-mediatypes-perl liblz4-1
  liblzma5 libmariadb3 libmnl0 libmpfr6 libncurses6 libncursesw6
  libpam-runtime libpam0g libpcre3 libpopt0 libseccomp2 libsepol1 libsigsegv2
  libsmartcols1 libsnappy1v5 libss2 libssl1.1 libtasn1-6 libtimedate-perl
  libtinfo6 libunistring2 liburi-perl libuuid1 libxtables12 libzstd1 lsb-base
  mariadb-common mysql-common ncurses-base ncurses-bin netbase psmisc
  readline-common socat sysvinit-utils tzdata zlib1g
85 upgraded, 0 newly installed, 0 to remove and 40 not upgraded.

$ apt-get dist-upgrade -y -o Debug::pkgProblemResolver=1
Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...Starting pkgProblemResolver with broken count: 10
Starting 2 pkgProblemResolver with broken count: 10
Investigating (0) mariadb-client-core-10.5:amd64 < none -> 1:10.5.10-2 @un uN Ib >
Broken mariadb-client-core-10.5:amd64 Conflicts on virtual-mysql-client-core:amd64 < none @un H >
  Considering mariadb-client-core-10.3:amd64 -3 as a solution to mariadb-client-core-10.5:amd64 0
  Added mariadb-client-core-10.3:amd64 to the remove list
Broken mariadb-client-core-10.5:amd64 Breaks on mariadb-client-core-10.3:amd64 < 1:10.3.29-0+deb10u1 @ii mK Ib >
  Considering mariadb-client-core-10.3:amd64 -3 as a solution to mariadb-client-core-10.5:amd64 0
  Added mariadb-client-core-10.3:amd64 to the remove list
  Fixing mariadb-client-core-10.5:amd64 via remove of mariadb-client-core-10.3:amd64
  Fixing mariadb-client-core-10.5:amd64 via remove of mariadb-client-core-10.3:amd64
Investigating (0) mariadb-client-10.5:amd64 < none -> 1:10.5.10-2 @un uN Ib >
Broken mariadb-client-10.5:amd64 Conflicts on virtual-mysql-client:amd64 < none @un H >
  Considering mariadb-client-10.3:amd64 -2 as a solution to mariadb-client-10.5:amd64 0
  Added mariadb-client-10.3:amd64 to the remove list
Broken mariadb-client-10.5:amd64 Breaks on mariadb-client-10.3:amd64 < 1:10.3.29-0+deb10u1 @ii mK Ib >
  Considering mariadb-client-10.3:amd64 -2 as a solution to mariadb-client-10.5:amd64 0
  Added mariadb-client-10.3:amd64 to the remove list
  Fixing mariadb-client-10.5:amd64 via remove of mariadb-client-10.3:amd64
  Fixing mariadb-client-10.5:amd64 via remove of mariadb-client-10.3:amd64
Investigating (0) galera-4:amd64 < none -> 26.4.8-1 @un uN Ib >
Broken galera-4:amd64 Conflicts on galera:amd64 < none @un H >
  Conflicts//Breaks against version 25.3.25-2 for galera-3 but that is not InstVer, ignoring
  Considering galera-3:amd64 -1 as a solution to galera-4:amd64 0
  Added galera-3:amd64 to the remove list
Broken galera-4:amd64 Conflicts on galera-3:amd64 < 25.3.25-2 -> 25.3.31-2+b1 @ii umU Ib >
  Considering galera-3:amd64 -1 as a solution to galera-4:amd64 0
  Added galera-3:amd64 to the remove list
  Conflicts//Breaks against version 25.3.25-2 for galera-3 but that is not InstVer, ignoring
Broken galera-4:amd64 Breaks on galera:amd64 < none @un H >
  Conflicts//Breaks against version 25.3.25-2 for galera-3 but that is not InstVer, ignoring
  Considering galera-3:amd64 -1 as a solution to galera-4:amd64 0
  Added galera-3:amd64 to the remove list
Broken galera-4:amd64 Breaks on galera-3:amd64 < 25.3.25-2 -> 25.3.31-2+b1 @ii umU Ib >
  Considering galera-3:amd64 -1 as a solution to galera-4:amd64 0
  Added galera-3:amd64 to the remove list
  Conflicts//Breaks against version 25.3.25-2 for galera-3 but that is not InstVer, ignoring
  Fixing galera-4:amd64 via remove of galera-3:amd64
  Fixing galera-4:amd64 via remove of galera-3:amd64
  Fixing galera-4:amd64 via remove of galera-3:amd64
  Fixing galera-4:amd64 via remove of galera-3:amd64
Investigating (0) mariadb-server-10.5:amd64 < none -> 1:10.5.10-2 @un uN Ib >
Broken mariadb-server-10.5:amd64 Conflicts on virtual-mysql-server:amd64 < none @un H >
  Considering mariadb-server-10.3:amd64 -4 as a solution to mariadb-server-10.5:amd64 0
  Added mariadb-server-10.3:amd64 to the remove list
Broken mariadb-server-10.5:amd64 Breaks on mariadb-server-10.3:amd64 < 1:10.3.29-0+deb10u1 @ii mK Ib >
  Considering mariadb-server-10.3:amd64 -4 as a solution to mariadb-server-10.5:amd64 0
  Added mariadb-server-10.3:amd64 to the remove list
  Fixing mariadb-server-10.5:amd64 via remove of mariadb-server-10.3:amd64
  Fixing mariadb-server-10.5:amd64 via remove of mariadb-server-10.3:amd64
Investigating (0) mariadb-server-core-10.5:amd64 < none -> 1:10.5.10-2 @un uN Ib >
Broken mariadb-server-core-10.5:amd64 Conflicts on virtual-mysql-server-core:amd64 < none @un H >
  Considering mariadb-server-core-10.3:amd64 -2 as a solution to mariadb-server-core-10.5:amd64 0
  Added mariadb-server-core-10.3:amd64 to the remove list
Broken mariadb-server-core-10.5:amd64 Breaks on mariadb-server-core-10.3:amd64 < 1:10.3.29-0+deb10u1 @ii mK Ib >
  Considering mariadb-server-core-10.3:amd64 -2 as a solution to mariadb-server-core-10.5:amd64 0
  Added mariadb-server-core-10.3:amd64 to the remove list
  Fixing mariadb-server-core-10.5:amd64 via remove of mariadb-server-core-10.3:amd64
  Fixing mariadb-server-core-10.5:amd64 via remove of mariadb-server-core-10.3:amd64
Done
The following packages were automatically installed and are no longer required:
  fdisk libapt-pkg5.0 libfdisk1 libffi6 libhogweed4 libnettle6 libperl5.28
  libreadline5 libreadline7 perl-modules-5.28
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
  galera-3 mariadb-client-10.3 mariadb-client-core-10.3 mariadb-server-10.3
  mariadb-server-core-10.3
The following NEW packages will be installed:
  galera-4 gcc-10-base krb5-locales libapt-pkg6.0 libbpf0 libbsd0
  libclone-perl libcrypt1 libedit2 libfcgi-bin libfcgi0ldbl libffi7 libgcc-s1
  libgssapi-krb5-2 libhogweed6 libk5crypto3 libkeyutils1 libkrb5-3
  libkrb5support0 libmd0 libnettle8 libnsl2 libnss-nis libnss-nisplus
  libpcre2-8-0 libperl5.32 libprocps8 libreadline8 libtirpc-common libtirpc3
  libxxhash0 logsave mariadb-client-10.5 mariadb-client-core-10.5
  mariadb-server-10.5 mariadb-server-core-10.5 perl-modules-5.32 procps
The following packages will be upgraded:
  apt coreutils dpkg e2fsprogs findutils gawk iproute2 libc-bin libc6
  libdbd-mysql-perl libdbi-perl libext2fs2 libfcgi-perl libgnutls30
  libhtml-parser-perl libhttp-message-perl libmount1 libp11-kit0
  libpam-modules libpam-modules-bin libselinux1 libsemanage-common
  libsemanage1 libstdc++6 libsystemd0 libterm-readkey-perl libudev1 libwrap0
  login lsof mariadb-server mawk mount passwd perl perl-base rsync tar
  util-linux
39 upgraded, 38 newly installed, 5 to remove and 0 not upgraded.

$ sed 's/buster/bullseye/g' -i /etc/apt/sources.list
$ sed '/security/d' -i /etc/apt/sources.list
$ cat /etc/apt/sources.list
# deb http://snapshot.debian.org/archive/debian/20210621T000000Z bullseye main
deb http://deb.debian.org/debian bullseye main
# deb http://snapshot.debian.org/archive/debian/20210621T000000Z bullseye-updates main
deb http://deb.debian.org/debian bullseye-updates main
$ apt update

$ apt upgrade -y -o Debug::pkgProblemResolver=1
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...Entering ResolveByKeep
  Dependencies are not satisfied for mariadb-client-core-10.5:amd64 < none -> 1:10.5.10-2 @un uN Ib >
Keeping package mariadb-client-core-10.5:amd64
  Dependencies are not satisfied for mariadb-client-10.5:amd64 < none -> 1:10.5.10-2 @un uN Ib >
Keeping package mariadb-client-10.5:amd64
  Dependencies are not satisfied for galera-4:amd64 < none -> 26.4.8-1 @un uN Ib >
Keeping package galera-4:amd64
  Dependencies are not satisfied for mariadb-server-10.5:amd64 < none -> 1:10.5.10-2 @un uN Ib >
Keeping package mariadb-server-10.5:amd64
  Dependencies are not satisfied for mariadb-server:amd64 < 1:10.3.29-0+deb10u1 -> 1:10.5.10-2 @ii umU Ib >
Keeping package mariadb-server:amd64
  Dependencies are not satisfied for mariadb-server-core-10.5:amd64 < none -> 1:10.5.10-2 @un uN Ib >
Keeping package mariadb-server-core-10.5:amd64
The following packages were automatically installed and are no longer required:
  libapt-pkg5.0 libffi6 libhogweed4 libnettle6 libperl5.28 libreadline7
  perl-modules-5.28
Use 'apt autoremove' to remove them.
The following NEW packages will be installed:
  bsdextrautils gcc-10-base krb5-locales libapt-pkg6.0 libbpf0 libbsd0
  libclone-perl libcrypt1 libfcgi-bin libfcgi0ldbl libffi7 libgcc-s1
  libgssapi-krb5-2 libhogweed6 libk5crypto3 libkeyutils1 libkrb5-3
  libkrb5support0 libmd0 libnettle8 libnsl2 libnss-nis libnss-nisplus
  libpcre2-8-0 libperl5.32 libreadline8 libtirpc-common libtirpc3 libxxhash0
  logsave perl-modules-5.32
The following packages have been kept back:
  galera-3 mariadb-server
The following packages will be upgraded:
  apt base-files base-passwd bash bsdutils coreutils dash debconf
  debian-archive-keyring debianutils diffutils dpkg e2fsprogs fdisk findutils
  gawk gpgv grep gzip hostname init-system-helpers iproute2 iputils-ping
  libacl1 libaio1 libattr1 libaudit-common libaudit1 libblkid1 libbz2-1.0
  libc-bin libc6 libcap-ng0 libcap2 libcap2-bin libcgi-fast-perl
  libcgi-pm-perl libcom-err2 libconfig-inifiles-perl libdb5.3
  libdbd-mysql-perl libdbi-perl libdebconfclient0 libelf1
  libencode-locale-perl libext2fs2 libfcgi-perl libfdisk1 libgcrypt20
  libgdbm-compat4 libgdbm6 libgmp10 libgnutls30 libgpg-error0 libgpm2
  libhtml-parser-perl libhtml-tagset-perl libhtml-template-perl
  libhttp-date-perl libhttp-message-perl libidn2-0 libio-html-perl
  liblwp-mediatypes-perl liblz4-1 liblzma5 libmariadb3 libmnl0 libmount1
  libmpfr6 libncurses6 libncursesw6 libp11-kit0 libpam-modules
  libpam-modules-bin libpam-runtime libpam0g libpcre3 libpopt0 libseccomp2
  libselinux1 libsemanage-common libsemanage1 libsepol1 libsigsegv2
  libsmartcols1 libsnappy1v5 libss2 libssl1.1 libstdc++6 libsystemd0
  libtasn1-6 libterm-readkey-perl libtimedate-perl libtinfo6 libudev1
  libunistring2 liburi-perl libuuid1 libwrap0 libxtables12 libzstd1 login
  lsb-base lsof mariadb-common mawk mount mysql-common ncurses-base
  ncurses-bin netbase passwd perl perl-base psmisc readline-common rsync socat
  sysvinit-utils tar tzdata util-linux zlib1g
123 upgraded, 31 newly installed, 0 to remove and 2 not upgraded.

$ apt dist-upgrade -y -o Debug::pkgProblemResolver=1
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...Starting pkgProblemResolver with broken count: 8
Starting 2 pkgProblemResolver with broken count: 8
Investigating (0) mariadb-server-core-10.5:amd64 < none -> 1:10.5.10-2 @un uN Ib >
Broken mariadb-server-core-10.5:amd64 Conflicts on virtual-mysql-server-core:amd64 < none @un H >
  Considering mariadb-server-core-10.3:amd64 -3 as a solution to mariadb-server-core-10.5:amd64 -1
  Added mariadb-server-core-10.3:amd64 to the remove list
Broken mariadb-server-core-10.5:amd64 Breaks on mariadb-server-10.3:amd64 < 1:10.3.29-0+deb10u1 @ii mK Ib >
  Considering mariadb-server-10.3:amd64 -5 as a solution to mariadb-server-core-10.5:amd64 -1
  Added mariadb-server-10.3:amd64 to the remove list
Broken mariadb-server-core-10.5:amd64 Breaks on mariadb-server-core-10.3:amd64 < 1:10.3.29-0+deb10u1 @ii mK Ib >
  Considering mariadb-server-core-10.3:amd64 -3 as a solution to mariadb-server-core-10.5:amd64 -1
  Added mariadb-server-core-10.3:amd64 to the remove list
  Fixing mariadb-server-core-10.5:amd64 via remove of mariadb-server-core-10.3:amd64
  Fixing mariadb-server-core-10.5:amd64 via remove of mariadb-server-10.3:amd64
  Fixing mariadb-server-core-10.5:amd64 via remove of mariadb-server-core-10.3:amd64
Investigating (0) mariadb-server-10.5:amd64 < none -> 1:10.5.10-2 @un uN Ib >
Broken mariadb-server-10.5:amd64 Depends on galera-4:amd64 < none | 26.4.8-1 @un uH > (>= 26.4)
  Considering galera-4:amd64 0 as a solution to mariadb-server-10.5:amd64 -1
  Holding Back mariadb-server-10.5:amd64 rather than change galera-4:amd64
Investigating (0) mariadb-client-core-10.5:amd64 < none -> 1:10.5.10-2 @un uN Ib >
Broken mariadb-client-core-10.5:amd64 Conflicts on virtual-mysql-client-core:amd64 < none @un H >
  Considering mariadb-client-core-10.3:amd64 -4 as a solution to mariadb-client-core-10.5:amd64 -1
  Added mariadb-client-core-10.3:amd64 to the remove list
Broken mariadb-client-core-10.5:amd64 Breaks on mariadb-client-core-10.3:amd64 < 1:10.3.29-0+deb10u1 @ii mK Ib >
  Considering mariadb-client-core-10.3:amd64 -4 as a solution to mariadb-client-core-10.5:amd64 -1
  Added mariadb-client-core-10.3:amd64 to the remove list
  Fixing mariadb-client-core-10.5:amd64 via remove of mariadb-client-core-10.3:amd64
  Fixing mariadb-client-core-10.5:amd64 via remove of mariadb-client-core-10.3:amd64
Investigating (0) mariadb-client-10.5:amd64 < none -> 1:10.5.10-2 @un uN Ib >
Broken mariadb-client-10.5:amd64 Conflicts on virtual-mysql-client:amd64 < none @un H >
  Considering mariadb-client-10.3:amd64 -3 as a solution to mariadb-client-10.5:amd64 -1
  Added mariadb-client-10.3:amd64 to the remove list
Broken mariadb-client-10.5:amd64 Breaks on mariadb-client-10.3:amd64 < 1:10.3.29-0+deb10u1 @ii mK Ib >
  Considering mariadb-client-10.3:amd64 -3 as a solution to mariadb-client-10.5:amd64 -1
  Added mariadb-client-10.3:amd64 to the remove list
  Fixing mariadb-client-10.5:amd64 via remove of mariadb-client-10.3:amd64
  Fixing mariadb-client-10.5:amd64 via remove of mariadb-client-10.3:amd64
Investigating (1) mariadb-server:amd64 < 1:10.3.29-0+deb10u1 -> 1:10.5.10-2 @ii umU Ib >
Broken mariadb-server:amd64 Depends on mariadb-server-10.5:amd64 < none | 1:10.5.10-2 @un uH > (>= 1:10.5.10-2)
  Considering mariadb-server-10.5:amd64 -1 as a solution to mariadb-server:amd64 0
  Removing mariadb-server:amd64 rather than change mariadb-server-10.5:amd64
Done
The following packages were automatically installed and are no longer required:
  fdisk galera-3 gcc-8-base libaio1 libapt-pkg5.0 libcgi-fast-perl
  libcgi-pm-perl libclone-perl libconfig-inifiles-perl libdbd-mysql-perl
  libdbi-perl libencode-locale-perl libfcgi-bin libfcgi-perl libfcgi0ldbl
  libfdisk1 libffi6 libgcc1 libgdbm-compat4 libgdbm6 libgpm2 libhogweed4
  libhtml-parser-perl libhtml-tagset-perl libhtml-template-perl
  libhttp-date-perl libhttp-message-perl libio-html-perl
  liblwp-mediatypes-perl libmariadb3 libncurses6 libncursesw6 libnettle6
  libperl5.28 libperl5.32 libpopt0 libreadline5 libreadline7 libsnappy1v5
  libterm-readkey-perl libtimedate-perl liburi-perl libwrap0 lsof
  mariadb-common mysql-common netbase perl perl-modules-5.28 perl-modules-5.32
  psmisc rsync socat
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
  mariadb-client-10.3 mariadb-client-core-10.3 mariadb-server
  mariadb-server-10.3 mariadb-server-core-10.3
The following packages will be upgraded:
  galera-3
1 upgraded, 0 newly installed, 5 to remove and 0 not upgraded.

--- End Message ---
--- Begin Message ---
On Sat, Jul 10, 2021 at 08:53:56PM -0700, Otto Kekäläinen wrote:
> On a Buster system that has mariadb-server (src:mariadb-10.3) apt-get
> will correctly upgrade to new mariadb-server (src:mariadb-10.5)
> version. However on apt, the resolver ends up uninstalling
> mariadb-server.

"apt-get upgrade" and "apt upgrade" do different things, yes.
It is kind of the point of "apt-get" vs. "apt" to be different even…

The former only upgrades packages if they don't require packages to be
removed and no new packages to be installed for their dependencies and
recommends to be satisfied. The later drops the "new packages" part from
this.

Note that the release notes in §4.4.4 use the flag --without-new-pkgs to
have apt-get and apt behave the same.

The behaviour is different for the "normal" usecase of upgrade:
Upgrading from point release to point release, potentially unattended,
where packages gain sometimes new dependencies/recommends we really
should install along with the (security) upgrade rather than holding
back forever which apt-get does.



I have said before that the mariadb packaging style is choosing the worst
of both worlds by being versioned and mutually exclusive which makes it
likely to run into situations in which a(ny) resolver will pick
seemingly at random. That you see this with apt vs apt-get is mostly
a red herring, you can easily see this with apt-get (or apt or aptitude
or …) on systems with different packages of your ecosystem installed.
The different invocations you choose here are just methods of producing
such differing systems.


So, as the difference in behaviour is expected and documented,
its not part of the release procedure and mariadb kinda opts into
being a nightmare I have to close this report as "not a bug".


Best regards

David Kalnischkies

Attachment: signature.asc
Description: PGP signature


--- End Message ---

Reply to: