When I install mysql-server, I get the following error:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
mysql-server : Depends: mysql-server-5.7 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
However, I am able to install the mysql-client without any problem. I have tried all the solutions given for related questions but nothing worked. The related problems I have tried are:
- 16.04 upgrade broke mysql-server
- Error Installing mySql on Ubuntu 16.04
- Install MySql 5.6 on Ubuntu 16.04
The following question also does not match with my problem: Error in installing Mysql-server in ubuntu16.04
Could anyone help me to resolve this issue. Thanks in advance.
apt list --installed | grep mysql
. In my case there was a conflict withmysql-common
and I had to remove it (it also removed some of the packages I need, so I reinstalled them later). After that I was able to install mysql normally. – Cheery Aug 07 '16 at 21:37apt list --installed | grep mysql
returns nothing. – Gobinath Aug 07 '16 at 23:53