• Re: MariaDB not installing looks like previous error (unresolved bug?)

    From john doe@21:1/5 to Michael Bonert on Mon Feb 17 10:30:01 2025
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dan Ritter@21:1/5 to Michael Bonert on Mon Feb 17 12:00:01 2025
    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-

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)