2

My OS was updated to 16.04

During the upgrade there was a problem with mysql. This is the error message:

Setting up mysql-common (5.7.19-0ubuntu0.16.04.1) ...
update-alternatives: error: alternative link /etc/mysql/my.cnf is already managed by my.cnf.bak
dpkg: error processing package mysql-common (--configure):
 subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
 mysql-common
E: Sub-process /usr/bin/dpkg returned an error code (1)

I tried the solutions that were proposed in the following questions and none of them worked for me. The solutions that were tried:

  1. Error Installing mySql on Ubuntu 16.04
  2. Having trouble installing and removing MySQL in Ubuntu
  3. 16.04 upgrade broke mysql-server
  4. Having trouble installing and removing MySQL in Ubuntu

Is there any suggestion for another solution? Thanks

The output of ls -l /etc/mysql is:

drwxr-xr-x 2 root root 4096 Sep 22 17:29 conf.d
-rw-r--r-- 1 root root  839 Sep 19 13:52 my.cnf.bak
-rw-r--r-- 1 root root  839 Jan 21  2017 my.cnf.fallback
-rw-r--r-- 1 root root  839 Sep 19 13:51 mysql.cnf
THelper
  • 355

0 Answers0