Comment 9 for bug 1914636

Revision history for this message
Yuan Song (moon396) wrote : Re: package mysql-server-8.0 8.0.23-0ubuntu0.20.04.1 failed to install/upgrade: installed mysql-server-8.0 package post-installation script subprocess returned error exit status 1

Here are the steps to recreate the issue.

1. Use the following tutorial to install mysql 5.7 on ubuntu 20.04. Insert some data into the database.
   https://techexpert.tips/mysql/installing-mysql-5-7-ubuntu-20-04/

2. Uninstall mysql-client, mysql-community-server, and mysql-server.
    apt-get remove mysql-community-server mysql-community-client mysql-server mysql-common mysql-client
3. remove /etc/apt/preferences.d/mysql
4. install the default verson of mysql-server.
    apt-get install mysql-server