Michael Bonert wrote: 
> 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)

Sometimes the system thinks that a daemon is running, but it
isn't, so stopping it doesn't work.

Sometimes the system can't stop a daemon which is running,
because the system didn't start it.

And occasionally the system can't stop a daemon which it did
start because it has become a zombie.

In the first case, you may be able to hack the init script so
that the stop command returns a success.

In the second case, you may be able to locate the running
server process and kill it yourself.

In the third case, a reboot is probably necessary.

-dsr-

Reply via email to