Had problems with
apt-get install mysql-server
dbconfig-common: writing config to /etc/dbconfig-common/phpmyadmin.conf Setting up mysql-server-5.5 (5.5.37-0ubuntu0.14.04.1) ... /var/lib/dpkg/info/mysql-server-5.5.postinst: line 146: logger: command not found ATTENTION: An error has occured. More info is in the syslog! /var/lib/dpkg/info/mysql-server-5.5.postinst: line 236: logger: command not found dpkg: error processing package mysql-server-5.5 (--configure): subprocess installed post-installation script returned error exit status 127 dpkg: dependency problems prevent configuration of mysql-server: mysql-server depends on mysql-server-5.5; however: Package mysql-server-5.5 is not configured yet.
So the sollution was to remove mysql completely,
sudo apt-get purge mysql* sudo apt-get autoremove sudo apt-get autoclean
then run
apt-get dist-upgrade
then installing mysql-server again
apt-get install mysql-server