On Mon, Mar 20, 2023 at 7:49 AM Dan Ritter <d...@randomstring.org> wrote:

> Timothy M Butterworth wrote:
> > On Mon, Mar 20, 2023 at 6:25 AM Dan Ritter <d...@randomstring.org> wrote:
> >
> > > Timothy M Butterworth wrote:
> > > > I am unable to install MariaDB on debian 12. apt show says the
> > > > mariadb-server is Version: 1:10.11.2-1.
> > > >
> > > > 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!
> > >
> > > Have you done that?
> > >
> >
> > I do not have any instances of MySQL or MariaDB running. The unit files
> are
> > not even installed.
>
> The pre-inst script believes that you do.
>
> > > > new mariadb-server package pre-installation script subprocess
> returned
> > > > error exit status 1
> > >
> > > If there is no mariadb or mysql server running, but the system
> > > believes that there is, /var/lib/dpkg/info should contain a
> > > mariadb.preinst script which can be examined for what mechanism
> > > it is using to determine that.
>
>
> ^ That. Go read it, execute it by hand, see what it is mistaken
> about.
>
> -dsr-
>

Dan,

Thanks for the info. I got it to install. I copied the mariadb.service file
and made a soft link from it to mysql.service. I was able to successfully
run `systemctl stop` against both service files. There was nothing to stop
since there was no database installed but I tricked the script into
thinking that it stopped the database. Anyway it was a little hacky but I
got mariadb-server installed.

Tim

-- 
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/
⠈⠳⣄⠀⠀

Reply via email to