MySQL installation error on Ubuntu

Sometimes MySQL could not be installed on Ubuntu due to issues like the following:

/var/lib/dpkg/info/mysql-server-5.5.postinst: line 144: logger: command not found

To solve this, simply run

apt-get --reinstall install bsdutils