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:
- Error Installing mySql on Ubuntu 16.04
- Having trouble installing and removing MySQL in Ubuntu
- 16.04 upgrade broke mysql-server
- 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
ls -l /etc/mysql
into this post as well. I've edited your post to avoid having it closed as too broad. Please ask a different question regarding your system settings issue and include the error message that popped up on that. Thank you for helping us help you! – Elder Geek Sep 21 '17 at 23:44