[Bug 1914636] 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

2021-03-02 Thread Lars Tangvald
The script in /var/lib/mysql-files seems very old; We do something similar now, but the "install plugin" line was removed, because that line will return an error if the plugin is already installed, aborting the script before it reaches shutdown, thus causing the installation to hang. If that

[Bug 1914636] 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

2021-03-01 Thread Shaikh Aazar
** Description changed: $ sudo apt purge mysql-server $ sudo rm -rf /etc/mysql $ dpkg -l | grep mysql result: ii libmysqlclient21:amd64 8.0.23-0ubuntu0.20.04.1 amd64MySQL database client library ii mysql-common

[Bug 1914636] 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

2021-02-19 Thread Christian Ehrhardt 
** Changed in: mysql-8.0 (Ubuntu) Assignee: (unassigned) => Lars Tangvald (lars-tangvald) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1914636 Title: package mysql-server-8.0

[Bug 1914636] 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

2021-02-18 Thread Yuan Song
Looks like there is some environment handling issue during the migration. I found a way to clean up the issue. 1. dpkg -l |grep mysql 2. purge all mysql packages. 3. rm -rf /etc/mysql rm -rf /var/lib/mysql* 4. apt-get install mysql-server. this will work. Looks like it is the

[Bug 1914636] 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

2021-02-18 Thread Yuan Song
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.

[Bug 1914636] 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

2021-02-18 Thread Yuan Song
I stopped mysql server with "systemctl stop mysql" and tried to start it with " systemctl start mysql". Same thing happened. systemctl hanged even though mysql server came up. I can connect to mysql server with no issue. ** Changed in: mysql-8.0 (Ubuntu) Status: Incomplete => Confirmed

[Bug 1914636] 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

2021-02-18 Thread Paride Legovini
Hi Yuan, please do not call the /etc/init.d scripts directly, they're not guaranteed to work as one may expect and are in good part a legacy a pre-systemd times. Please use systemctl(1) instead, e.g.: $ systemctl status mysql $ systemctl stop mysql $ systemctl start mysql and similar. **

[Bug 1914636] 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

2021-02-17 Thread Yuan Song
Looks like it is an issue of /etc/init.d/mysql. I did not see any error except /etc/init.d/mysql hanged. mysql server runs ok. I compared mysql 5.7 version of /etc/init.d/mysql and the mysql 8 version of /etc/init.d/mysql. Those two files are identical. Should that script be updated? --

[Bug 1914636] 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

2021-02-17 Thread Yuan Song
/etc/init.d/mysql start does not return even though msyql server runs fine. I can run mysql to connect to the db server. 021-02-17T20:58:31.388560Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.23-0ubuntu0.20.04.1) starting as process 362367 2021-02-17T20:58:31.415192Z 1 [System]

[Bug 1914636] 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

2021-02-17 Thread Yuan Song
** Changed in: mysql-8.0 (Ubuntu) Status: Incomplete => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1914636 Title: package mysql-server-8.0 8.0.23-0ubuntu0.20.04.1 failed to

[Bug 1914636] 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

2021-02-05 Thread Christian Ehrhardt 
Hi Muhammad, IMHO the problem is right at the start, one should not manually remove /ect/* files :-) But ok, let us consider it happened somehow and you now need to resolve things. If you look at this example you'll see that /etc/mysql belongs not to the package you purged root@f:~# for i in

[Bug 1914636] 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

2021-02-05 Thread Christian Ehrhardt 
Thank you for your report. This looks like a local configuration problem, rather than a bug in Ubuntu. You can find pointers to get help for this sort of problem here: http://www.ubuntu.com/support/community Since we use this bug tracker to track bugs in Ubuntu, rather than configuration

[Bug 1914636] 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

2021-02-04 Thread Apport retracing service
** Tags removed: need-duplicate-check -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1914636 Title: package mysql-server-8.0 8.0.23-0ubuntu0.20.04.1 failed to install/upgrade: installed

[Bug 1914636] 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

2021-02-04 Thread Muhammad Naufal Hilmy Makarim
- Fixing method: Check if /etc/mysql directory exist. If it exist, then check if /etc/mysql/conf.d/ exist. It it not exist, then check if /etc/mysql/mysql.conf.d exist. If it exist then run the command below. $ sudo ln -s /etc/mysql/mysql.conf.d /etc/mysql/conf.d That command