Comment 12 for bug 123427

Revision history for this message
mfalcon (syracuse) wrote : RE: [Bug 123427] Re: [apport] package mysql-server-5.0 failed toinstall/upgrade:

This is what I did and it was the only solution after many failed
uninstall/removal/upgrade attempts:

Backup ALL your data files, including the mySQL systems tables.
Remove the files from the file system.
Perform the upgrade.
Restore your data files from backup (except the system tables).

/\/\att

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of Wim
Feijen
Sent: Sunday, October 28, 2007 11:32 AM
To: <email address hidden>
Subject: [Bug 123427] Re: [apport] package mysql-server-5.0 failed
toinstall/upgrade:

Hello, I am curious if any solution (or cause) has been found, because I
seem to be encountering the same problem:

wim@wim-laptop:/var/lib/mysql/mysql$ sudo apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
mysql-server is already the newest version.
The following packages were automatically installed and are no longer
required
  gs-esp-x libneon25 feisty-wallpapers libstlport5.1 vnc-common
  python-docutils python-roman libgpod1 libavformat0d xvncviewer
  python-imaging libcurl3 zope-common libflac7 feisty-session-splashes
  libjasper-1.701-1 libavcodec0d libgs-esp8 libquicktime0 liba52-0.7.4 Use
'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Setting up mysql-server-5.0 (5.0.45-1ubuntu3) ...
 * Stopping MySQL database server mysqld [
OK
 * Starting MySQL database server mysqld
[fail
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing mysql-server-5.0 (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mysql-server:
 mysql-server depends on mysql-server-5.0; however:
  Package mysql-server-5.0 is not configured yet.
dpkg: error processing mysql-server (--configure):
 dependency problems - leaving unconfigured Errors were encountered while
processing:
 mysql-server-5.0
 mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
wim@wim-laptop:/var/lib/mysql/mysql$ sudo dpkg --configure -a Setting up
mysql-server-5.0 (5.0.45-1ubuntu3) ...
 * Stopping MySQL database server mysqld [
OK
 * Starting MySQL database server mysqld
[fail
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing mysql-server-5.0 (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mysql-server:
 mysql-server depends on mysql-server-5.0; however:
  Package mysql-server-5.0 is not configured yet.
dpkg: error processing mysql-server (--configure):
 dependency problems - leaving unconfigured Errors were encountered while
processing:
 mysql-server-5.0
 mysql-server
wim@wim-laptop:/var/lib/mysql/mysql$ sudo aptitude --purge remove
mysql-server .0 mysql-server Reading package lists... Done
Building dependency tree
Reading state information... Done
Initializing package states... Done
Writing extended state information... Done
Building tag database... Done
The following packages are unused and will be REMOVED:
  feisty-session-splashes{p} feisty-wallpapers{p} gs-esp-x{p}
  liba52-0.7.4{p} libavcodec0d{p} libavformat0d{p} libcurl3{p} libflac7{p}
  libgpod1{p} libgs-esp8{p} libjasper-1.701-1{p} libneon25{p}
  libquicktime0{p} libstlport5.1{p} python-docutils{p} python-imaging{p}
  python-roman{p} vnc-common{p} xvncviewer{p} zope-common{p} The following
packages will be REMOVED:
  mysql-server mysql-server-5.0
0 packages upgraded, 0 newly installed, 22 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 107MB will be freed.
Do you want to continue? [Y/n/?] Y
Writing extended state information... Done (Reading database ... 156116
files and directories currently installed.) Removing mysql-server ...
Removing mysql-server-5.0 ...
 * Stopping MySQL database server mysqld [
OK
(Reading database ... 154204 files and directories currently installed.)
Removing feisty-session-splashes ...
Removing feisty-wallpapers ...
Purging configuration files for feisty-wallpapers ...
Removing gs-esp-x ...
Removing libavformat0d ...
Purging configuration files for libavformat0d ...
Removing libavcodec0d ...
Purging configuration files for libavcodec0d ...
Removing liba52-0.7.4 ...
Purging configuration files for liba52-0.7.4 ...
Removing libcurl3 ...
Purging configuration files for libcurl3 ...
Removing libflac7 ...
Purging configuration files for libflac7 ...
Removing libgpod1 ...
Purging configuration files for libgpod1 ...
Removing libgs-esp8 ...
Purging configuration files for libgs-esp8 ...
Removing libjasper-1.701-1 ...
Purging configuration files for libjasper-1.701-1 ...
Removing libneon25 ...
Purging configuration files for libneon25 ...
Removing libquicktime0 ...
Purging configuration files for libquicktime0 ...
Removing libstlport5.1 ...
Purging configuration files for libstlport5.1 ...
Removing python-docutils ...
Purging configuration files for python-docutils ...
Removing python-imaging ...
Removing python-roman ...
Removing xvncviewer ...
Purging configuration files for xvncviewer ...
Removing vnc-common ...
Purging configuration files for vnc-common ...
Removing zope-common ...
Purging configuration files for zope-common ...
rmdir: /usr/local/share/zope/Products: No such file or directory
rmdir: /usr/local/share/zope: No such file or directory Processing triggers
for libc6 ...
ldconfig deferred processing now taking place
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
Building tag database... Done
wim@wim-laptop:/var/lib/mysql/mysql$ sudo aptitude install mysql-server-5.0
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
The following NEW packages will be automatically installed:
  exim4 exim4-base exim4-config exim4-daemon-light liblockfile1 mailx The
following NEW packages will be installed:
  exim4 exim4-base exim4-config exim4-daemon-light liblockfile1 mailx
  mysql-server-5.0
0 packages upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 1797kB/28.6MB of archives. After unpacking 88.3MB will be used.
Do you want to continue? [Y/n/?] Y
Writing extended state information... Done
Get:1 http://nl.archive.ubuntu.com gutsy/main exim4-config 4.67-5build1
[258kB
Get:2 http://nl.archive.ubuntu.com gutsy/main exim4-base 4.67-5build1
[957kB]
Get:3 http://nl.archive.ubuntu.com gutsy/main exim4-daemon-light
4.67-5build1 07kB]
Get:4 http://nl.archive.ubuntu.com gutsy/main exim4 4.67-5build1 [4480B]

Get:5 http://nl.archive.ubuntu.com gutsy/main liblockfile1 1.06.2 [14.8kB]

Get:6 http://nl.archive.ubuntu.com gutsy/main mailx 1:8.1.2-0.20070424cvs-1
[1 kB]
Fetched 1797kB in 10s (177kB/s)

Preconfiguring packages ...
Selecting previously deselected package mysql-server-5.0.
(Reading database ... 153581 files and directories currently installed.)
Unpacking mysql-server-5.0 (from
.../mysql-server-5.0_5.0.45-1ubuntu3_i386.deb
...
Selecting previously deselected package exim4-config.
Unpacking exim4-config (from .../exim4-config_4.67-5build1_all.deb) ...
Selecting previously deselected package exim4-base.
Unpacking exim4-base (from .../exim4-base_4.67-5build1_i386.deb) ...
Selecting previously deselected package exim4-daemon-light.
Unpacking exim4-daemon-light (from
.../exim4-daemon-light_4.67-5build1_i386.de
 ...
Selecting previously deselected package exim4.
Unpacking exim4 (from .../exim4_4.67-5build1_all.deb) ...
Selecting previously deselected package liblockfile1.
Unpacking liblockfile1 (from .../liblockfile1_1.06.2_i386.deb) ...
Selecting previously deselected package mailx.
Unpacking mailx (from .../mailx_1%3a8.1.2-0.20070424cvs-1_i386.deb) ...
Setting up mysql-server-5.0 (5.0.45-1ubuntu3) ...
 * Stopping MySQL database server mysqld [
OK
 * Starting MySQL database server mysqld
[fail
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing mysql-server-5.0 (--configure):
 subprocess post-installation script returned error exit status 1 Setting up
exim4-config (4.67-5build1) ...
Adding system-user for exim (v4)

Setting up exim4-base (4.67-5build1) ...

Setting up exim4-daemon-light (4.67-5build1) ...
 * Starting MTA [
OK

Setting up exim4 (4.67-5build1) ...

Setting up liblockfile1 (1.06.2) ...
Setting up mailx (1:8.1.2-0.20070424cvs-1) ...

Errors were encountered while processing:
 mysql-server-5.0
E: Sub-process /usr/bin/dpkg returned an error code (1) A package failed to
install. Trying to recover:
Setting up mysql-server-5.0 (5.0.45-1ubuntu3) ...
 * Stopping MySQL database server mysqld [
OK
 * Starting MySQL database server mysqld
[fail
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing mysql-server-5.0 (--configure):
 subprocess post-installation script returned error exit status 1 Errors
were encountered while processing:
 mysql-server-5.0
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done Building tag database... Done

--
[apport] package mysql-server-5.0 failed to install/upgrade:
https://bugs.launchpad.net/bugs/123427
You received this bug notification because you are a direct subscriber of
the bug.