Thanks for reporting this bug and trying to make Ubuntu better.
Looking at the logs, I noticed you tried to install mariadb on top of
mysql, that's not a supported use case and you should try to pick one of
them. Once you tried to install mariadb, mysql was supposed to be
removed and for some reason the pre-removal script failed when trying to
stop the service. It seems that the systemd unit file was not present:
Failed to stop mysql.service: Unit mysql.service not loaded.
invoke-rc.d: initscript mysql, action "stop" failed.
Failed to preset unit: File mysql.service: Link has been severed
/usr/bin/deb-systemd-helper: error: systemctl preset failed on mysql.service: No
such file or directory
Failed to start mysql.service: Unit mysql.service not found.
invoke-rc.d: initscript mysql, action "start" failed.
Unit mysql.service could not be found.
Since it seems likely to me that this is a local configuration problem,
rather than a bug in Ubuntu, I am marking this bug as 'Incomplete'.
However, if you believe that this is really a bug in Ubuntu, then we would
be grateful if you would provide a more complete description of the problem
with steps to reproduce, explain why you believe this is a bug in Ubuntu
rather than a problem specific to your system, and then change the bug
status back to "New".
For local configuration issues, you can find assistance here:
http://www.ubuntu.com/support/community
** Changed in: mysql-8.0 (Ubuntu)
Status: New => Incomplete
** Summary changed:
- package mysql-server-8.0 8.0.28-0ubuntu0.20.04.3 failed to install/upgrade:
installed mysql-server-8.0 package pre-removal script subprocess returned error
exit status 1
+ package mysql-server-8.0 8.0.28-0ubuntu0.20.04.3 failed to install/upgrade:
installed mysql-server-8.0 package pre-removal script subprocess returned error
exit status 1(mysql.service not found)
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1963869
Title:
package mysql-server-8.0 8.0.28-0ubuntu0.20.04.3 failed to
install/upgrade: installed mysql-server-8.0 package pre-removal script
subprocess returned error exit status 1(mysql.service not found)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mysql-8.0/+bug/1963869/+subscriptions
--
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs