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

Reply via email to