Hi CY,
that is odd - as if partially removed and the system is unsure in which state 
it is.
>From your log:
Failed to stop mysql.service: Unit mysql.service not loaded.
invoke-rc.d: initscript mysql, action "stop" failed.
invoke-rc.d returned 5

Even on a non existing service that should work.

Could you run the following in a console and share the full output?:
$ systemctl status mysql
$ sudo invoke-rc.d mysql stop
$ systemctl stop mysql
$ systemctl status mysql

** Changed in: mysql-5.7 (Ubuntu)
       Status: Confirmed => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1709622

Title:
  package mysql-server-5.7 5.7.19-0ubuntu0.17.04.1 failed to
  install/upgrade: subprocess new pre-installation script returned error
  exit status 1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mysql-5.7/+bug/1709622/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to