0

How can I install MySQL in Ubuntu Minimal 12.04?

When I try to apt-get install mysql-server (as root) even after apt-get update and apt-get upgrade in a fresh install, I receive this:

# 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.
1
  • What error is in your logs ?
    – Panther
    Nov 6, 2014 at 14:01

2 Answers 2

1

have you tried this

 sudo apt-get update --fix-missing
 sudo apt-get build-dep mysql-client5.5 mysql-server5.5
 sudo apt-get -f install 

Try that and let me know how it foes for you..

2
  • I will try and post the results here Nov 6, 2014 at 14:10
  • It's ok. just try that and also look out for other answers
    – Zuko
    Nov 6, 2014 at 14:11
0

Since you are installing fresh,Please follow the steps to make clean uninstall.

apt-get purge mysql-server : This would remove the MySQL server

apt-get purge mysql-common :This would remove the related MySQL files

rm -rf /var/lib/mysql :This would delete the data folder of MySQL

rm -rf /etc/mysql

Once you have done,it would remove the MySQL completely from your machine.

Now try with the command to re-install by specifying the attributes

apt-get install mysql-server --fix-missing --fix-broken

Hope it would help

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .