【未解決だけど解決?】mysql_configが存在しない

Ubuntu14にmysqlをインストールしている。
mysql_configが実行できない。

root@ubuntu:~# mysql_config
The program 'mysql_config' can be found in the following packages:
 * libmysqlclient-dev
 * libmariadbclient-dev
Try: apt-get install <selected package>

apt-get installでインストールしなさいということなので、libmysqlclient-devをインストールする。

root@ubuntu:~# apt-get install libmysqlclient-dev
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:
 libmysqlclient-dev : Depends: libmysqlclient18 (= 5.5.38-0ubuntu0.14.04.1) but 5.6.20-1ubuntu14.04 is to be installed
E: Unable to correct problems, you have held broken packages

libmysqlclient18に依存関係があって、libmysqlclient18をインストールしなければならないようだ。
今回使用しているmysqlバージョンは5.6.20。

root@ubuntu:~# apt-get install libmysqlclient18
Reading package lists... Done
Building dependency tree
Reading state information... Done
libmysqlclient18 is already the newest version.
The following packages were automatically installed and are no longer required:
  libdbi-perl libterm-readkey-perl
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 399 not upgraded.

「libmysqlclient18 is already the newest version.」。うーん、すでに最新版がインストールされているっぽい。

(追記)
なんだか面倒くさそうだったから、CentOS7を新しく用意して、「mysql Ver 14.14 Distrib 5.6.21, for Linux (x86_64) using EditLine wrapper」をrpmからインストールした。

# tar xvf MySQL-5.6.21-1.el7.x86_64.rpm-bundle.tar
# yum -y install libaio.so
# rpm -Uvh MySQL-client-5.6.21-1.el7.x86_64.rpm
# rpm -Uvh MySQL-devel-5.6.21-1.el7.x86_64.rpm
# rpm -Uvh MySQL-shared-5.6.21-1.el7.x86_64.rpm
# rpm -Uvh MySQL-embedded-5.6.21-1.el7.x86_64.rpm
# rpm -Uvh MySQL-server-5.6.21-1.el7.x86_64.rpm

そしたらmysql_configはあった。

[root@vmcent7 rio]# locate mysql_config
/usr/bin/mysql_config
/usr/bin/mysql_config_editor
/usr/share/man/man1/mysql_config.1.gz
/usr/share/man/man1/mysql_config_editor.1.gz

なお、locateコマンドはCentOSではインストールされていなかったので、yumでインストールした(mlocateというパッケージをインストール)。

# yum -y install mlocate


(追記)
MySQL5.6.20から5.6.21にアップデートした。
その後、次を実行したら、mysql_configが入った。あれ?寝ぼけていた?それともmysqlをアップデートしないといけないの?

$ sudo apt-get install libmysqlclient-dev