[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: MariaDB Server is not installing on Debian 12



I have the same problem of not being able to install mariadb-server 1:10.11.2-1. The error is the same - a failed attempt to stop mariadb.service or mysql.service.

In my case, there is no service running for either of them, so I have nothing to stop. I also checked, and there's no mariadb.preinst file in /var/lib/dpkg/info.

However, I started from these lines in the output:
> Errors were encountered while processing:
>  /var/cache/apt/archives/mariadb-server_1%3a10.11.2-1_amd64.deb

and I used dpkg-deb to look in that package file. DEBIAN/preinst had a `stop_server()` function that was trying to stop existing servers based on the result of:
> pgrep -x --nslist pid --ns $$ "mysqld|mariadbd"

(at line 31). I executed that in a shell and I did get a result - only it wasn't for a running server, but for a standalone process:
> pgrep -x --nslist pid --ns $$ "mysqld|mariadbd"
> 1939

> ps aux | grep 1939
> cosmin 1939 0.0 1.2 2439604 204892 ? Sl 19:22 0:02 /usr/sbin/mysqld --defaults-file=/home/cosmin/.local/share/akonadi/mysql.conf --datadir=/home/cosmin/.local/share/akonadi/db_data/ --socket=/run/user/1000/akonadi/mysql.socket --pid-file=/run/user/1000/akonadi/mysql.pid

My guess is that the check from `preinst` could be improved to handle cases like this. Does it count like a bug? Should I file a report?

--
Cosmin


Reply to: