Hello, $ cat /etc/debian_version 12.10
An automated apt update/upgrade failed last night. On trying again, I get: $ sudo apt update; sudo apt upgrade <snip> Preconfiguring packages ... 48 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. Need to get 0 B/133 MB of archives. After this operation, 474 MB of additional disk space will be used. Setting up mariadb-common (1:10.11.11-0+deb12u1) ... update-alternatives: error: alternative path /etc/mysql/mariadb.cnf doesn't exist dpkg: error processing package mariadb-common (--configure): installed mariadb-common package post-installation script subprocess returned error exit status 2 Errors were encountered while processing: mariadb-common E: Sub-process /usr/bin/dpkg returned an error code (1) /etc/mysql/mariadb.cnf doesn't exist on my system, but is provided within the package: $ ls /etc/mysql/*cnf /etc/mysql/debian.cnf $ dpkg -x /var/cache/apt/archives/mariadb-common_1%3a10.11.11-0+deb12u1_all.deb ~/deb $ dpkg -e /var/cache/apt/archives/mariadb-common_1%3a10.11.11-0+deb12u1_all.deb ~/deb $ ls ~/deb/etc/mysql/*cnf /home/user/deb/etc/mysql/mariadb.cnf $ tail ~/deb/postinst # Thus, we need to ensure here that mariadb.cnf indeed became the primary # alternative and override with priority 500 if needed. if ! update-alternatives --query my.cnf | grep --quiet "Value: /etc/mysql/mariadb.cnf" then update-alternatives --install /etc/mysql/my.cnf my.cnf "/etc/mysql/mariadb.cnf" 500 || true fi ;; esac Isn't this supposed to add/replace mariadb.cnf from the package into /etc/mysql/? FWIW: $ update-alternatives --query my.cnf | grep --quiet "Value: /etc/mysql/mariadb.cnf" update-alternatives: warning: alternative /etc/mysql/mariadb.cnf (part of link group my.cnf) doesn't exist; removing from list of alternatives update-alternatives: warning: alternative /etc/mysql/my.cnf.fallback (part of link group my.cnf) doesn't exist; removing from list of alternatives Has anyone else seen this? Thanks, Gareth