I've installed Mysql-(server/client)-5.6 on Ubuntu 14.04 LTS server
but for some programs I need mysql-client (automysqlbackup and postfix for example)

root@server:~# apt-get install automysqlbackup                  
 automysqlbackup : Depends: mysql-client


root@server:~# apt-get install mysql-client mysql-server    
The following packages have unmet dependencies:
 mysql-client : Depends: mysql-client-5.5 but it is not going to be installed
 mysql-server : Depends: mysql-server-5.5 but it is not going to be installed


root@server:~# apt-get install mysql-client-5.6 mysql-server-5.6
 mysql-client-5.6 is already the newest version.
 mysql-server-5.6 is already the newest version.

Do I need to install mysql-(server/client)-5.5 alongside 5.6?


1 Answer 1


If automysqlbackup can work with mysql-client-5.6 (In other words, if it's binary compatible with mysql-client-5.6).

Is possible to use equivs to create dummy packages for mysql-client, mysql-server. Nothing to loose if it didn't work just uninstall them:

  1. Install equivs:

    sudo apt-get install equivs
  2. Generate control file from template:

    equivs-control mysql-client
  3. Open mysql-client file for edit. Change name and version if needed:

    Package: mysql-client
    Version: 5.6
  4. Build then install it:

    equivs-build mysql-client
    sudo dpkg -i mysql-client*.deb

Follow same steps for mysql-server.

  • sorry for the delay.. i've tryed youre sollution but i ran into an error with equivs_build mysql-client. sh: 1: cannot open package: No such file sh: 1: defaults: not found
    – TD_Nijboer
    Aug 7, 2014 at 8:31
  • @TD_Nijboer, :) me too, I was w/out Internet access. sorry I missed a step. see my updated answer.
    – user.dz
    Sep 9, 2014 at 12:56
  • Worked for me...
    – Petah
    Nov 20, 2014 at 1:15
  • Worked for me also. Very nice. Any problems I need to watch out for in the future? Will Ubuntu try to upgrade this package or anything?
    – flickerfly
    Jun 15, 2015 at 15:59
  • 1
    @flickerfly, No. As you see here packages.ubuntu.com/… , mysql-client package available only as version 5.5 in trusty and there will be no major upgrade, so it will never upgrade your local which is version 5.6
    – user.dz
    Jun 15, 2015 at 16:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.