dpkg: error processing mysql-server-5.5 (--configure)
rm -rf /var/lib/mysql /etc/mysql ~/.mysql apt-get –yes autoremove –purge mysql-server-5.5 apt-get –yes autoremove –purge mysql-client-5.5 apt-get –yes autoremove –purge mysql-common deluser mysql apt-get autoclean apt-get update && apt-get upgrade apt-get install mysql-server-5.5 mysql-client-5.5 NOTE: when you get ‘dpkg: error…’ please run step below: $ dpkg –configure -a Setting up mysql-server-5.5 (5.5.41-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 after installing bsdutils, apt-get install bsdutils mysql installation passed normally