When installing mariadb with sudo apt install mariadb-server
I got
/var/lib/mysql: found previous version 10.11
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.
Turned out Akonadi was stopping the install.
user123@debian:/etc/apt$ sudo akonadictl stop
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
D-Bus session bus is not available!
24 -- exe=/usr/bin/akonadictl
19 -- appname=akonadictl
17 -- apppath=/usr/bin
9 -- signal=6
9 -- pid=4970
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = akonadictl path = /usr/bin pid = 4970
KCrash: Arguments: /usr/bin/akonadictl stop
KCrash: Attempting to start /usr/lib/x86_64-linux-gnu/libexec/drkonqi
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/ContextDrawer.qml:132:9: QML ListView: Binding loop detected for property "topMargin"
[4]+ Stopped sudo akonadictl stop
user123@debian:/etc/apt$ sudo akonadictl status
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
D-Bus session bus is not available!
24 -- exe=/usr/bin/akonadictl
19 -- appname=akonadictl
17 -- apppath=/usr/bin
9 -- signal=6
9 -- pid=5011
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = akonadictl path = /usr/bin pid = 5011
KCrash: Arguments: /usr/bin/akonadictl status
KCrash: Attempting to start /usr/lib/x86_64-linux-gnu/libexec/drkonqi
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/ContextDrawer.qml:132:9: QML ListView: Binding loop detected for property "topMargin"
[5]+ Stopped sudo akonadictl status
user123@debian:/etc/apt$ ps aux | grep mysql
user123 2123 0.1 0.6 2767156 188136 ? Sl 09:08 0:01 /usr/sbin/mysqld --defaults-file=/home/user123/.local/share/akonadi/mysql.conf --datadir=/home/user123/.local/share/akonadi/db_data/ --socket=/run/user/1000/akonadi/mysql.socket --pid-file=/run/user/1000/akonadi/mysql.pid
user123 5058 0.0 0.0 6332 2108 pts/1 S+ 09:19 0:00 grep mysql
user123@debian:/etc/apt$ sudo pkill -9 mysql
user123@debian:/etc/apt$ ps aux | grep mysql
user123 5093 0.0 0.0 6332 2068 pts/1 S+ 09:20 0:00 grep mysql
Is this a bug, or something specific to my setup?
Running KDE Plasma Version: 5.27.5 on Debian 12 Kernel 6.1.0-26-amd64