Comment 7 for bug 989353

Revision history for this message
Richard (resaulsberry) wrote : Re: [Bug 989353] Re: package mysql-server-5.5 5.5.22-0ubuntu1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

This is what I did to get mysql 5.5 running on ubuntu 12.04

After upgrading to 12.04 I got the errors listed in the bug report and I
could not start mysql or set a password.

what I did was to run

1) sudo apt-get --purge remove mysql-server-5.1 mysql-server-5.5

and then run

2) sudo apt-get install mysql-server-5.5
3) sudo netstat- tap | grep mysql
4) sudo etc/init.d/mysql restart

After these steps mysql started running fine, I could create password and I
then installed phpmyadmin to create tables and manage the database. Hope it
helps.

Thanks,

On Mon, May 7, 2012 at 1:12 PM, Sasa Stamenkovic
<email address hidden>wrote:

> Can anyone suggest workaround, please? At least tell me to reinstall
> Ubuntu.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/989353
>
> Title:
> package mysql-server-5.5 5.5.22-0ubuntu1 failed to install/upgrade:
> subprocess installed post-installation script returned error exit
> status 1
>
> Status in “mysql-5.5” package in Ubuntu:
> Confirmed
>
> Bug description:
> unable to login to mysql, Error: unable to set password fro mysql
> "root" user.
>
> I then tried to uninstall and then I got more error messages
>
> ProblemType: Package
> DistroRelease: Ubuntu 12.04
> Package: mysql-server-5.5 5.5.22-0ubuntu1
> ProcVersionSignature: Ubuntu 3.2.0-24.37-generic 3.2.14
> Uname: Linux 3.2.0-24-generic i686
> ApportVersion: 2.0.1-0ubuntu6
> AptOrdering:
> libjaxp1.3-java: Remove
> mysql-server-5.5: Configure
> mysql-server: Configure
> Architecture: i386
> Date: Thu Apr 26 21:51:30 2012
> DuplicateSignature:
> Setting up mysql-server-5.5 (5.5.22-0ubuntu1) ...
> start: Job failed to start
> invoke-rc.d: initscript mysql, action "start" failed.
> dpkg: error processing mysql-server-5.5 (--configure):
> subprocess installed post-installation script returned error exit
> status 1
> ErrorMessage: subprocess installed post-installation script returned
> error exit status 1
> InstallationMedia: Ubuntu-Netbook 10.04 "Lucid Lynx" - Release i386
> (20100429.4)
> Logs.var.log.daemon.log:
>
> MySQLConf.etc.mysql.conf.d.mysqld.safe.syslog.cnf:
> [mysqld_safe]
> syslog
> MySQLVarLibDirListing: ['mysql_upgrade_info', 'test', 'shoppingcart',
> 'performance_schema', 'ibdata1', 'debian-5.1.flag', 'mysql',
> 'debian-5.5.flag']
> SourcePackage: mysql-5.5
> Title: package mysql-server-5.5 5.5.22-0ubuntu1 failed to
> install/upgrade: subprocess installed post-installation script returned
> error exit status 1
> UpgradeStatus: Upgraded to precise on 2012-04-27 (0 days ago)
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/mysql-5.5/+bug/989353/+subscriptions
>