Thank you John and Dan for your responses!
I am not entirely sure what the issue is here-- but I did manage to install mariadb.
This is what I did it:
I cleared everything related to 'mysql' and 'mariadb' off with a combination of:
dpkg --remove [mysql package names / mariadb package names]
dpkg --purge [mysql package names / mariadb package names]
apt-get remove [mysql package names / mariadb package names]
apt autoremove
Afterwards, 'dpkg' shows no packages with 'mysql' AND 'maria'.
# dpkg --list |grep mysql
# dpkg --list |grep maria
# systemctl stop mariadb
Failed to stop mariadb.service: Unit mariadb.service not loaded.
** REBOOTED MACHINE **
# apt install mariadb-server
(It worked)
Michael
From: john doe <johndoe65534@mail.com>
Sent: Monday, February 17, 2025 4:28 AM To: debian-user@lists.debian.org <debian-user@lists.debian.org> Subject: Re: MariaDB not installing looks like previous error (unresolved bug?) [You don't often get email from johndoe65534@mail.com. Learn why this is important at
https://aka.ms/LearnAboutSenderIdentification ]
On 2/16/25 20:24, Michael Bonert wrote: > 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). > # > Why do you only want to update "mariadb-server-core - MariaDB database core server files" and not the full installation? > ~~ > 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. > With "mariadb-server" PKG installed, that should be `systemctl stop mariadb`. > > ~~ I can only suggest you to remove, everything that you have "mariadb" related ("apt-get --autoremove purge mariadb-server") and try again. Note that "purging" will remove all of your config files. -- John Doe |