I get the following when trying to install mariadb: # apt install mariadb-server-core Reading package lists... Done Building dependency tree... Done Reading state information... Done mariadb-server-core is already the newest version (1:10.11.6-0+deb12u1). mariadb-server-core set to manually installed. You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies: mariadb-plugin-provider-bzip2 : Depends: mariadb-server (>= 1:10.11.1-1) but it is not going to be installed mariadb-plugin-provider-lz4 : Depends: mariadb-server (>= 1:10.11.1-1) but it is not going to be installed mariadb-plugin-provider-lzma : Depends: mariadb-server (>= 1:10.11.1-1) but it is not going to be installed mariadb-plugin-provider-lzo : Depends: mariadb-server (>= 1:10.11.1-1) but it is not going to be installed mariadb-plugin-provider-snappy : Depends: mariadb-server (>= 1:10.11.1-1) but it is not going to be installed E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution). #
~~ I did try 'apt --fix-broken install'. When I do that it gives me (in relation to the package "mariadb-server") the message: ~~ Preconfiguring packages ... (Reading database ... 453123 files and directories currently installed.) Preparing to unpack .../mariadb-server_1%3a10.11.6-0+deb12u1_amd64.deb ... Failed to stop mariadb.service: Unit mariadb.service not loaded. invoke-rc.d: initscript mariadb, action "stop" failed. Failed to stop mysql.service: Unit mysql.service not loaded. invoke-rc.d: initscript mysql, action "stop" failed. Attempt to stop MariaDB/MySQL server returned exitcode 5 There is a MariaDB/MySQL server running, but we failed in our attempts to stop it. Stop it yourself and try again! dpkg: error processing archive /var/cache/apt/archives/mariadb-server_1%3a10.11.6-0+deb12u1_amd64.deb (--unpack): new mariadb-server package pre-installation script subprocess returned error exit status 1 Errors were encountered while processing: /var/cache/apt/archives/mariadb-server_1%3a10.11.6-0+deb12u1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1) ~~ I tried to stop mysql. It is not running. ~~ # service mysql stop Failed to stop mysql.service: Unit mysql.service not loaded. ~~ This looks much like a thread from two years ago - https://lists.debian.org/debian-user/2023/03/msg00774.html https://linux.debian.user.narkive.com/S2sXMrNK/mariadb-server-is-not-installing-on-debian-12 ~~ I am on Debian 12: # lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 12 (bookworm) Release: 12 Codename: bookworm ~~ # apt policy "mariadb-server*" .. mariadb-server: Installed: (none) Candidate: 1:10.11.6-0+deb12u1 Version table: 1:10.11.6-0+deb12u1 500 500 https://mirror.csclub.uwaterloo.ca/debian bookworm/main amd64 Packages mariadb-server-core: Installed: 1:10.11.6-0+deb12u1 Candidate: 1:10.11.6-0+deb12u1 Version table: *** 1:10.11.6-0+deb12u1 500 500 https://mirror.csclub.uwaterloo.ca/debian bookworm/main amd64 Packages 100 /var/lib/dpkg/status I read through the thread from 2023. I am not feeling brave enough to hack around on systemd files without a bit more knowledge. Help would be appreciated. Thanks, Michael