Same problem here. Installer tries to stop a process that doesn't exist.
Then throws an error that it cannot stop the process (because it doesn't
exist!) then fails to install correctly. So mysql server cannot be
started:

Setting up mysql-common (5.8+1.0.5ubuntu2) ...
(Reading database ... 136344 files and directories currently installed.)
Preparing to unpack .../0-mysql-server-8.0_8.0.20-0ubuntu0.20.04.1_amd64.deb ...
Failed to stop mysql.service: Unit mysql.service not loaded.
invoke-rc.d: initscript mysql, action "stop" failed.
invoke-rc.d returned 5
There is a MySQL server running, but we failed in our attempts to stop it.
Stop it yourself and try again!
dpkg: error processing archive 
/tmp/apt-dpkg-install-ZJV0dE/0-mysql-server-8.0_8.0.20-0ubuntu0.20.04.1_amd64.deb
 (--unpack):
 new mysql-server-8.0 package pre-installation script subprocess returned error 
exit status 1
Selecting previously unselected package libhtml-template-perl.
Preparing to unpack .../1-libhtml-template-perl_2.97-1_all.deb ...
Unpacking libhtml-template-perl (2.97-1) ...
Selecting previously unselected package mecab-utils.
Preparing to unpack .../2-mecab-utils_0.996-10build1_amd64.deb ...
Unpacking mecab-utils (0.996-10build1) ...
Selecting previously unselected package mecab-ipadic.
Preparing to unpack .../3-mecab-ipadic_2.7.0-20070801+main-2.1_all.deb ...
Unpacking mecab-ipadic (2.7.0-20070801+main-2.1) ...
Selecting previously unselected package mecab-ipadic-utf8.
Preparing to unpack .../4-mecab-ipadic-utf8_2.7.0-20070801+main-2.1_all.deb ...
Unpacking mecab-ipadic-utf8 (2.7.0-20070801+main-2.1) ...
Selecting previously unselected package mysql-server.
Preparing to unpack .../5-mysql-server_8.0.20-0ubuntu0.20.04.1_all.deb ...
Unpacking mysql-server (8.0.20-0ubuntu0.20.04.1) ...
Errors were encountered while processing:
 
/tmp/apt-dpkg-install-ZJV0dE/0-mysql-server-8.0_8.0.20-0ubuntu0.20.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

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

Title:
  package mysql-server-8.0 8.0.19-0ubuntu5 failed to install/upgrade:
  installed mysql-server-8.0 package pre-removal script subprocess
  returned error exit status 1

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to