The problem here is that the mysql-common installed on the system came
from MariaDB, and does not provide a file expected to be provided by the
Oracle mysql-common, `/usr/share/mysql-common/configure-symlinks`.
[Dependencies.txt]
mysql-client-8.0 8.0.42-0ubuntu0.22.04.2
mysql-client-core-8.0 8.0.42-0ubuntu0.22.04.1
mysql-common 1:10.5.29+maria~ubu2004 [origin: MariaDB]
mysql-server-core-8.0 8.0.42-0ubuntu0.22.04.2
[DpkgTerminalLog.txt]
Setting up mysql-server-8.0 (8.0.42-0ubuntu0.22.04.2) ...
/var/lib/dpkg/info/mysql-server-8.0.postinst: line 202:
/usr/share/mysql-common/configure-symlinks: No such file or directory
[1mdpkg:[0m error processing package mysql-server-8.0 (--configure):
installed mysql-server-8.0 package post-installation script subprocess
returned error exit status 127
So, this isn't a bug in mysql-8.0 but rather caused by having a mix of
MariaDB and Oracle MySQL co-installed.
Cleaning up your system should be done via:
$ sudo apt-get purge 'mysql-server*' 'mysql-client*' 'mysql-common*'
'libmysqlclient*' 'mariadb*' -y
$ sudo apt-get autoremove -y
$ sudo rm -rf /etc/mysql /var/lib/mysql # CAUTION: Backup any data first!
$ sudo apt-get clean
$ sudo apt-get update
Then you should be able to reinstall correctly:
$ sudo apt install mysql-server-8.0 -y
If you're still having trouble please use support channels at
answers.launchpad.net.
** Changed in: mysql-8.0 (Ubuntu)
Status: New => Invalid
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2116839
Title:
package mysql-server-8.0 8.0.42-0ubuntu0.22.04.2 failed to
install/upgrade: installed mysql-server-8.0 package post-installation
script subprocess returned error exit status 127
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mysql-8.0/+bug/2116839/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs