|
Here is another strange effect of having pre-installed config files on Debians, e.g. on the final Buster.
It has this by default
ii libmariadb3:amd64 1:10.3.15-1 amd64 MariaDB database client library
|
ii mariadb-common 1:10.3.15-1 all MariaDB common metapackage
|
ii mysql-common 5.8+1.0.5 all MySQL database common files, e.g. /etc/mysql/my.cnf
|
The packages belong to Debian, they are not built by MariaDB.
Upon installation of MariaDB packages, if we install mariadb-common and mysql-common at once, it falls into interactive mode, even with DEBIAN_FRONTEND=noninteractive and apt-get install -y:
$ sudo sh -c 'DEBIAN_FRONTEND=noninteractive MYSQLD_STARTUP_TIMEOUT=180 apt-get install --allow-unauthenticated -y mariadb-common mysql-common'
|
Reading package lists... Done
|
Building dependency tree
|
Reading state information... Done
|
The following packages will be upgraded:
|
mariadb-common mysql-common
|
2 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
|
Need to get 9,076 B of archives.
|
After this operation, 71.7 kB disk space will be freed.
|
Get:1 http://mirror.netinch.com/pub/mariadb/repo/10.3/debian buster/main amd64 mysql-common all 1:10.3.16+maria~buster [5,580 B]
|
Get:2 http://mirror.netinch.com/pub/mariadb/repo/10.3/debian buster/main amd64 mariadb-common all 1:10.3.16+maria~buster [3,496 B]
|
Fetched 9,076 B in 0s (19.4 kB/s)
|
apt-listchanges: Reading changelogs...
|
(Reading database ... 45456 files and directories currently installed.)
|
Preparing to unpack .../mysql-common_1%3a10.3.16+maria~buster_all.deb ...
|
Unpacking mysql-common (1:10.3.16+maria~buster) over (5.8+1.0.5) ...
|
Preparing to unpack .../mariadb-common_1%3a10.3.16+maria~buster_all.deb ...
|
Unpacking mariadb-common (1:10.3.16+maria~buster) over (1:10.3.15-1) ...
|
Setting up mysql-common (1:10.3.16+maria~buster) ...
|
|
Configuration file '/etc/mysql/my.cnf' (actually '/etc/mysql/mariadb.cnf')
|
==> File on system created by you or by a script.
|
==> File also in package provided by package maintainer.
|
What would you like to do about it ? Your options are:
|
Y or I : install the package maintainer's version
|
N or O : keep your currently-installed version
|
D : show the differences between the versions
|
Z : start a shell to examine the situation
|
The default action is to keep your current version.
|
This currently causes a failure in minor-upgrade-all on Buster.
For now, I am going to use -o Dpkg::Options::="--force-confnew" as a workaround (if we are lucky and it will work on all debians), but it's not ideal.
Oddly, if the packages are installed separately, it works:
sudo sh -c 'DEBIAN_FRONTEND=noninteractive MYSQLD_STARTUP_TIMEOUT=180 apt-get install --allow-unauthenticated -y mariadb-common'
|
Reading package lists... Done
|
Building dependency tree
|
Reading state information... Done
|
The following packages will be upgraded:
|
mariadb-common
|
1 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
|
Need to get 3,496 B of archives.
|
After this operation, 58.4 kB disk space will be freed.
|
Get:1 http://mirror.netinch.com/pub/mariadb/repo/10.3/debian buster/main amd64 mariadb-common all 1:10.3.16+maria~buster [3,496 B]
|
Fetched 3,496 B in 0s (9,850 B/s)
|
apt-listchanges: Reading changelogs...
|
(Reading database ... 45456 files and directories currently installed.)
|
Preparing to unpack .../mariadb-common_1%3a10.3.16+maria~buster_all.deb ...
|
Unpacking mariadb-common (1:10.3.16+maria~buster) over (1:10.3.15-1) ...
|
Setting up mariadb-common (1:10.3.16+maria~buster) ...
|
Installing new version of config file /etc/mysql/mariadb.cnf ...
|
$
|
$ sudo sh -c 'DEBIAN_FRONTEND=noninteractive MYSQLD_STARTUP_TIMEOUT=180 apt-get install --allow-unauthenticated -y mysql-common'
|
Reading package lists... Done
|
Building dependency tree
|
Reading state information... Done
|
The following packages will be upgraded:
|
mysql-common
|
1 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
|
Need to get 5,580 B of archives.
|
After this operation, 13.3 kB disk space will be freed.
|
Get:1 http://mirror.netinch.com/pub/mariadb/repo/10.3/debian buster/main amd64 mysql-common all 1:10.3.16+maria~buster [5,580 B]
|
Fetched 5,580 B in 0s (15.8 kB/s)
|
apt-listchanges: Reading changelogs...
|
(Reading database ... 45456 files and directories currently installed.)
|
Preparing to unpack .../mysql-common_1%3a10.3.16+maria~buster_all.deb ...
|
Unpacking mysql-common (1:10.3.16+maria~buster) over (5.8+1.0.5) ...
|
Setting up mysql-common (1:10.3.16+maria~buster) ...
|
$
|
|