Hum, seems that the package is not discovering properly the pid of the mysqld process.
If I check the processlist, the process is running:
tss 2218 34.1 16.2 1070252 164004 pts/0 Sl+ 21:29 0:02 mysqld --initialize-insecure --user=mysql --init-file=/var/lib/mysql-files/tmp.pvEzRsUZrw
but dpkg reports:
Setting up mysql-server-8.0 (8.0.22-0ubuntu0.20.04.3) ...
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of stop.
update-alternatives: using /etc/mysql/mysql.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode
Renaming removed key_buffer and myisam-recover options (if present)
mysqld will log errors to /var/log/mysql/error.log
mysqld is running as pid 1377
Error: Unable to shut down server with process id 1377
could not find anything running with PID 1377 on the host though.
I don’t know how the image itself s built by distrobuilder, is it within a chroot? Maybe I need to mount /proc “inside” the chroot?