Dependency problem with mysql-server-core-5.5 [closed]
Since I didn't actually need MySQL server anymore I solved this by uninstalling programs with unresolved dependencies one by one.
First I had a similar error:
mysql-server-5.5 : Depends: mysql-server-core-5.5 (= 5.5.29-0ubuntu0.12.04.1)
but 5.5.29-0ubuntu0.12.04.2 is to be installed
I uninstalled mysql-server-core-5.5
using dpkg
:
$ sudo dpkg --remove mysql-server-core-5.5
The another error arised:
mysql-server-5.5 : Depends: mysql-server-core-5.5 (= 5.5.29-0ubuntu0.12.04.2)
but it is not going to be installed
Uninstall mysql-server-5.5
this time:
$ sudo dpkg --remove mysql-server-5.5
One step higher in the hierarchy:
mysql-server : Depends: mysql-server-5.5 but it is not going to be installed
Uninstall mysql-server
:
sudo dpkg --remove mysql-server
Seems to work now.
First make sure your package sources are correct. Then run a
sudo apt-get update
sudo apt-get -f install
just to make sure. If that still doesn't work then continue on.
Remove the offending package
sudo dpkg --remove 5.5.28-0ubuntu0.12.04.2
folowed by
sudo apt-get -f install
This should remove MySQL completely (including the meta packages you stated).
You can then re-install with:
sudo apt-get install mysql-server-5.5
I had the same problem with mysql-server-core-5.5 version 5.5.29-0ubuntu0.12.04.1
mysql-server-5.5 depende de mysql-server-core-5.5 (= 5.5.24-0ubuntu0.12.04.1); sin embargo: La versión de `mysql-server-core-5.5' en el sistema es 5.5.29-0ubuntu0.12.04.1
I solved it with this commands:
- Backup de database(s)
- Check all version avaible of mysql-server for you linux distribution. sudo apt-cache madison mysql-server-5.5.
- Remove the packages of mysql-server.
sudo apt-get remove mysql-server-5.5 mysql-server-core-5.5
. - Install a old version (see the second point for select one). And run the command:
sudo apt-get install mysql-server-5.5=5.5.22-0ubuntu1 mysql-server-core-5.5=5.5.22-0ubuntu1