Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Was running an apt upgrade and

The following packages have been kept back:
libmysqlclient18 percona-server-client-5.5 percona-server-server-5.5

I'm currently running percona mysql 5.5.15-55-log

Trying sudo apt-get install percona-server-server-5.5 I get:

The following packages have unmet dependencies:
percona-server-server-5.5 : Depends: percona-server-client-5.5 (>= 5.5.17-rel22.1-197.squeeze) but 5.5.15-rel21.0-160.squeeze is to be installed

I'm not sure how to proceed from here.

More for Z:

# apt-cache policy percona-server-client-5.5
  Installed: 5.5.15-rel21.0-160.squeeze
  Candidate: 5.5.17-rel22.1-197.squeeze
  Version table:
     5.5.17-rel22.1-197.squeeze 0
        500 squeeze/main amd64 Packages
 *** 5.5.15-rel21.0-160.squeeze 0
        100 /var/lib/dpkg/status

When I run apt-get install percona-server-server percona-server-client

Get:1 squeeze/main percona-server-client all 5.5.17-rel22.1-197.squeeze [2624 B]
Get:2 squeeze/main percona-server-server all 5.5.17-rel22.1-197.squeeze [2736 B]

Then if I apt-get upgrade it shows:

The following packages have been kept back:
  libmysqlclient18 percona-server-client-5.5 percona-server-server-5.5

Trying apt-get install libmysqlclient18 percona-server-client-5.5 percona-server-server-5.5 I get:

The following packages have unmet dependencies:
 libmysqlclient18 : Depends: mysql-common (>= 5.5.18-1~dotdeb.1)

Sure, adding /etc/apt/sources.list:

# deb squeeze main

deb squeeze main non-free contrib
deb-src squeeze main non-free contrib

deb squeeze/updates main contrib non-free
deb-src squeeze/updates main contrib non-free

# squeeze-updates, previously known as 'volatile'
deb squeeze-updates main contrib non-free
deb-src squeeze-updates main contrib non-free

# dotdeb
# deb squeeze all
# deb-src squeeze all
deb stable all
deb-src stable all

# percona
deb squeeze main
deb-src squeeze main

No pinnings that I've added yet.

share|improve this question
Re-run apt-get update maybe? The newest version appears to be in the repository ( What do you get when you run apt-cache policy percona-server-client-5.5? – Zoredache Dec 2 '11 at 0:14
Usually you should just update your question with the details. What happens when you run apt-get install percona-server-server percona-server-client or apt-get install libmysqlclient18 percona-server-client-5.5 percona-server-server-5.5? – Zoredache Dec 2 '11 at 0:58
updated the original post/question – Poe Dec 2 '11 at 1:32
Post your full sources.list and any current apt pinning settings, if you need further help. – Zoredache Dec 2 '11 at 17:41
up vote 2 down vote accepted
libmysqlclient18 : Depends: mysql-common (>= 5.5.18-1~dotdeb.1)

This error here seems to strongly indicate what your problem is.

You appear to mixing and matching several different repositories. It appears you have at least the official, percona, and dotdeb repositories. Somehow you have gotten into a state where it seems like the dotdeb libmysqlclient18 version has been choose as the installation candidate, but this appears to require a package that isn't available or installable for some reason.

You may have to do some apt pinning to make sure the packages are chosen from the correct repository. In this case libmysqlclient18 probably needs to come from the percona repo.

share|improve this answer
added output of sources.list above – Poe Dec 2 '11 at 22:26
in /etc/apt/preferences.d/percona (new) I set the priority of the percona repo higher (700) and reran apt update, upgrade, that worked. Thanks for the lead. – Poe Dec 2 '11 at 23:45

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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