Why is percona-xtrabackup-80 trying to install mariadb-common when mysql-common is already installed?

I’ve followed the instructions for installing on Debian.

When simulating the install of percona-xtrabackup-80, it says it will install mariadb-common.

$ apt-get -s install percona-xtrabackup-80
NOTE: This is only a simulation!
      apt-get needs root privileges for real execution.
      Keep also in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libcurl4-openssl-dev libdbd-mysql-perl libdbi-perl libev4 libmariadb3 mariadb-common

I already have mysql-common installed.

$ apt policy mysql-common
  Installed: 8.0.26-1debian11
  Candidate: 8.0.26-1debian11
  Version table:
 *** 8.0.26-1debian11 500
        500 http://repo.mysql.com/apt/debian bullseye/mysql-8.0 amd64 Packages
        100 /var/lib/dpkg/status
     5.8+1.0.7 500
        500 http://deb.debian.org/debian bullseye/main amd64 Packages

The rdepends of mariadb-common states that it Breaks mysql-common.

$ apt rdepends mariadb-common
Reverse Depends:
  Breaks: mysql-common (<< 10.0.20-3~)
  Depends: mariadb-client-core-10.5 (>= 1:10.5.11-1)
  Depends: mariadb-server-core-10.5 (>= 1:10.5.11-1)
  PreDepends: mariadb-server-10.5 (>= 1:10.5.11-1)
  Depends: libmariadb3

Checking the dependencies of percona-xtrabackup-80, there is no mention of mariadb-common.

$ apt show percona-xtrabackup-80
Package: percona-xtrabackup-80
Provides: xtrabackup
Depends: libdbd-mysql-perl, libcurl4-openssl-dev, rsync, libaio1 (>= 0.3.93), libc6 (>= 2.29), libcurl4 (>= 7.16.3), libev4 (>= 1:4.04), libgcc-s1 (>= 3.4), libgcrypt20 (>= 1.8.0), libssl1.1 (>= 1.1.1), libstdc++6 (>= 9)
Conflicts: percona-xtrabackup, percona-xtrabackup-21, percona-xtrabackup-22, percona-xtrabackup-24
Breaks: xtrabackup (<< 2.0.0~)
Replaces: xtrabackup (<< 2.0.0~)
Enhances: mysql-server

Is this intended behavior and/or is there some way to prevent the installation of mariadb-common?

1 Like

This is not intended behavior. Check the dependencies for libdbd-mysql-perl and libdbi-perl

1 Like


$ apt show libdbd-mysql-perl
Package: libdbd-mysql-perl
Version: 4.050-3+b1
Priority: optional
Section: perl
Source: libdbd-mysql-perl (4.050-3)
Maintainer: Debian Perl Group <pkg-perl-maintainers@lists.alioth.debian.org>
Installed-Size: 287 kB
Depends: perl (>= 5.32.0-4), perl-dbdabi-94, perlapi-5.32.0, libc6 (>= 2.4), libmariadb3 (>= 3.0.0), libdbi-perl


apt show libdbi-perl
Package: libdbi-perl
Version: 1.643-3+b1
Priority: optional
Section: perl
Source: libdbi-perl (1.643-3)
Maintainer: Debian Perl Group <pkg-perl-maintainers@lists.alioth.debian.org>
Installed-Size: 2,215 kB
Provides: dh-sequence-perl-dbi, perl-dbdabi-94
Depends: perl (>= 5.32.0-4), perlapi-5.32.0, libc6 (>= 2.4)
Suggests: libclone-perl, libmldbm-perl, libnet-daemon-perl, libsql-statement-perl
Breaks: libdbd-anydata-perl (<< 0.11+), libdbd-csv-perl (<< 0.3600+), libsql-statement-perl (<< 1.33+)

Looks like it’s coming from libdbd-mysql-perl which has libmariadb3 as a dependency:

apt show libmariadb3
Package: libmariadb3
Version: 1:10.5.11-1
Priority: optional
Section: libs
Source: mariadb-10.5
Maintainer: Debian MySQL Maintainers <pkg-mysql-maint@lists.alioth.debian.org>
Installed-Size: 539 kB
Depends: mariadb-common, libc6 (>= 2.28), libssl1.1 (>= 1.1.1), zlib1g (>= 1:1.1.4)
Conflicts: mariadb-galera-server-10.0, mariadb-galera-server-5.5, mariadb-server-10.0, mariadb-server-5.1, mariadb-server-5.2, mariadb-server-5.3, mariadb-server-5.5
1 Like

That’s pretty lame but nothing you can do about it.

1 Like