Uninstall MySQL 5.1 impossible

Bug #527355 reported by HHA
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
mysql-dfsg-5.1 (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

Before the problem appears, I uninstalled MythTV-Frontend and -Backend. After the completed Process the Uninstall of MySQL failed.
Release : Ubuntu 9.10

ProblemType: Package
Architecture: i386
Date: Wed Feb 24 15:39:19 2010
DistroRelease: Ubuntu 9.10
ErrorMessage:
 ErrorMessage: Unterprozess installiertes pre-removal-Skript gab den Fehlerwert 1 zurück
MySQLConf.etc.mysql.conf.d.mysqld.safe.syslog.cnf:
 [mysqld_safe]
 syslog
MySQLConf.etc.mysql.conf.d.mythtv.cnf:
 [mysqld]
 #bind-address=0.0.0.0
MySQLVarLibDirListing: ['mysql_upgrade_info', 'ib_logfile0', 'debian-5.1.flag', 'ibdata1', 'mythconverg', 'mysql', 'debian-5.0.flag', 'ib_logfile1']
Package: mysql-server-5.1 5.1.37-1ubuntu5.1
ProcVersionSignature: Ubuntu 2.6.31-19.56-generic
SourcePackage: mysql-dfsg-5.1
Title: package mysql-server-5.1 5.1.37-1ubuntu5.1 failed to install/upgrade:
Uname: Linux 2.6.31-19-generic i686

Revision history for this message
HHA (hartmuth-hansen) wrote :
Revision history for this message
Mathias Gug (mathiaz) wrote :

Hi,

Relevant error:
Log started: 2010-02-24 15:39:11
[...]
Entferne mysql-server-5.1 ...
 * Stopping MySQL database server mysqld
   ...fail!
invoke-rc.d: initscript mysql, action "stop" failed.

It seems that the mysql server was running though:

Feb 24 15:02:34 ghoster-laptop mysqld_safe: Starting mysqld daemon with databases from /var/lib/mysql
Feb 24 15:02:34 ghoster-laptop mysqld: 100224 15:02:34 [Note] Plugin 'FEDERATED' is disabled.
Feb 24 15:02:36 ghoster-laptop mysqld: 100224 15:02:36 InnoDB: Started; log sequence number 0 43655
Feb 24 15:02:36 ghoster-laptop mysqld: 100224 15:02:36 [Note] Event Scheduler: Loaded 0 events
Feb 24 15:02:36 ghoster-laptop mysqld: 100224 15:02:36 [Note] /usr/sbin/mysqld: ready for connections.
Feb 24 15:02:36 ghoster-laptop mysqld: Version: '5.1.37-1ubuntu5.1' socket: '/var/run/mysqld/mysqld.sock' port: 3306 (Ubuntu)

Could you check if there is an init script for mysql in /etc/init.d/ (there shouldn't be any)?

Changed in mysql-dfsg-5.1 (Ubuntu):
status: New → Incomplete
importance: Undecided → Medium
Revision history for this message
Lars Carlsson (larscarlsson) wrote : Re: [Bug 527355] Re: Uninstall MySQL 5.1 impossible

On Tue, 2010-03-02 at 21:42 +0000, Mathias Gug wrote:
> /etc/init.d/

Hi,
There is this file now:
-rwxr-xr-x 1 root root 5609 2010-02-08 23:20 /etc/init.d/mysql

But, I installed mysql from sources after the ubuntu package failed so I
might have put it there.

Regards,
Lars

Revision history for this message
Mathias Gug (mathiaz) wrote :

The problem you're seeing may be related to the fact that you've installed mysql from sources. Marking the bug as Invalid - make sure that the Mysql from source installation has been correctly removed before reinstalling the mysql ubuntu package.

Changed in mysql-dfsg-5.1 (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
Lars Carlsson (larscarlsson) wrote :

Hi,
My installation of mysql from sources was done after removing the ubuntu
package of mysql 5.1 and trying to install the ubuntu package of mysql
5.0. So I would say that my problem is not related to the sources
installation.

/Lars

On Wed, 2010-03-03 at 15:22 +0000, Mathias Gug wrote:
> The problem you're seeing may be related to the fact that you've
> installed mysql from sources. Marking the bug as Invalid - make sure
> that the Mysql from source installation has been correctly removed
> before reinstalling the mysql ubuntu package.
>
> ** Changed in: mysql-dfsg-5.1 (Ubuntu)
> Status: Incomplete => Invalid
>

Revision history for this message
Mathias Gug (mathiaz) wrote :

On Wed, Mar 03, 2010 at 05:58:05PM -0000, Lars Carlsson wrote:
> Hi,
> My installation of mysql from sources was done after removing the ubuntu
> package of mysql 5.1 and trying to install the ubuntu package of mysql
> 5.0.

Downgrading from 5.1 to 5.0 is not supported. If you've purged mysql-5.1 you
should also make sure that the data directory (/var/lib/mysql) is empty before
installing mysql-5.0 - not that you may loose data by deleting /var/lib/mysql/

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.