mysql-server-5.0 installation fails

Bug #291987 reported by Oguz Yarimtepe
110
This bug affects 8 people
Affects Status Importance Assigned to Milestone
Ubuntu Netbook Remix
Won't Fix
Undecided
Unassigned
mysql-dfsg-5.0 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

At the UNR 1.0 because of the undefined variable INITOUTPUT at the /etc/lsb-base-logging.sh, mysql-server-5.0 and mysql-server installation fails.

Commenting the line 84 and 106 which are starting as

if [ "INITOUTPUT" = "yes" ]; then

....

fi //should be commented also

is solving the problem. Indeed i don't know why this if condition is defined there. Anybody knows why the INITOUTPUT is written there?

Tags: ubuntu-unr
Revision history for this message
Chris Wayne (cwayne) wrote :

Using Dell Mini 9, UNR 1.0.1, I was able to recreate this bug

Changed in netbook-remix:
status: New → Confirmed
Revision history for this message
nosolosw (nosolosw) wrote :

Hi,

I had the same error for my mini dell inspiron 12". I have resolved it by commenting the lines where the INITOUTPUT var was checked. I'm uploading a patch to fix this.

If you want use this patch, you have to do:

1. Download the patch attached in this comment to /tmp, naming mysql-server-error.patch
2. Aplly the patch:

     cd /etc
     sudo patch lsb-base-loggin.sh < /tmp/mysql-server-error.patch

Revision history for this message
Rick Richardson (rick-richardson) wrote :

Ditto. Using Dell Mini 9, UNR 1.0.1, I was able to recreate this bug

Revision history for this message
patryk (pbratkowski) wrote :

I have had the same problem, also using UNR 1.0.1.

I tried installing it about a month and a half ago, so every time I ran apt-get, or synaptic, it gave me errors.

I finally replaced the /etc/lsb-base-logging.sh with the version on my home machine (Ubuntu 8.10), and after running 'apt-get install -f' it finally completed the installation.

Revision history for this message
Iain (iain-beeston) wrote :

I can confirm I get the same problem on UNR 1.0.1 on an acer aspire one netbook

Revision history for this message
Jerry (gefarru) wrote :

I have the same problem, can someone explain me how to operate step by step?

Thanks Jerry

Revision history for this message
Holger Koch (atarax) wrote :

I can confirm this bug on my Dell Mini 9 with regular Ubuntu 8.04 installation from dell-mini.archive.canonical.com.

I could purge the package mysql-server-5.0 and reinstall it by adding the line

INITOUTPUT=no

to /etc/default/rcS

But the server only runs without (notified) errors when replacing any log message calls (for example: log_daemon_msg "Starting MySQL database server" "mysqld") in /etc/init.d/mysql after the line

case $1 in

with the value "true". This seems to me a bad work around, since it only keeps the mysql-server from telling you about its problems...

Revision history for this message
RishiRamraj (thereisnocowlevel) wrote :

Confirmed using hp mini 1000.

I was able to use aptitude without problems by calling

export INITPUTPUT='yes'

before running aptitude.

atarax, have you tried setting INITOUTPUT=yes in rcS? It seems to work fine for me.

Revision history for this message
Paul Larson (pwlars) wrote :

Moving to Ubuntu distribution

Changed in mysql-dfsg-5.0 (Ubuntu):
status: New → Confirmed
Changed in netbook-remix:
status: Confirmed → Won't Fix
tags: added: ubuntu-unr
Revision history for this message
Calvin Mitchell (calvin674) wrote :

patch failed on my karmic installation with:
sudo patch ./lsb-base-logging.sh < /tmp/mysql-server-error.patch
patching file ./lsb-base-logging.sh
Hunk #1 FAILED at 84.
Hunk #2 FAILED at 114.
Hunk #3 FAILED at 136.
Hunk #4 FAILED at 156.
4 out of 4 hunks FAILED -- saving rejects to file ./lsb-base-logging.sh.rej

restored lsb-base-logging.sh from backup;

sudo apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libboost-date-time1.34.1 libboost-thread1.34.1
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libhtml-template-perl mysql-server-5.0
The following NEW packages will be installed:
  libhtml-template-perl mysql-server mysql-server-5.0
0 upgraded, 3 newly installed, 0 to remove and 1 not upgraded.
Need to get 0B/24.3MB of archives.
After this operation, 82.1MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Preconfiguring packages ...
(Reading database ... 338086 files and directories currently installed.)
Unpacking mysql-server-5.0 (from .../mysql-server-5.0_5.1.30really5.0.83-0ubuntu1_amd64.deb) ...
Aborting downgrade from (at least) 5.1 to 5.0.
dpkg: error processing /var/cache/apt/archives/mysql-server-5.0_5.1.30really5.0.83-0ubuntu1_amd64.deb (--unpack):
 subprocess new pre-installation script returned error exit status 1
Selecting previously deselected package libhtml-template-perl.
Unpacking libhtml-template-perl (from .../libhtml-template-perl_2.9-1_all.deb) ...
Unpacking mysql-server (from .../mysql-server_5.1.30really5.0.83-0ubuntu1_all.deb) ...
Processing triggers for man-db ...
Errors were encountered while processing:
 /var/cache/apt/archives/mysql-server-5.0_5.1.30really5.0.83-0ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

attachment: my original karmic lsb-base-logging.sh

Revision history for this message
Declan McGrath (declanmg) wrote :

@RishiRamraj Your fix of setting INITOUTPUT=yes in the /etc/default/rcS file before running aptitude has worked for me on my Dell Mini 10. Thanks so much!

Revision history for this message
Peter Belew (peterbe) wrote :
Download full text (3.7 KiB)

I'm running Dell's release of Ubuntu on a 10v netbook.

I installed Apache2, php, and then attempted to install mysql and mysql-server (mysql-server-5.0), using synaptic. The mysql server failed to install completely, and cannot be removed, with synaptic,

 Ubuntu version and kernel version
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=8.04
DISTRIB_CODENAME=hardy
DISTRIB_DESCRIPTION="Ubuntu 8.04.2"
Linux mini 2.6.24-24-lpia #1 SMP Wed May 6 17:43:36 UTC 2009 i686 GNU/Linux
model name : Intel(R) Atom(TM) CPU N270 @ 1.60GHz
model name : Intel(R) Atom(TM) CPU N270 @ 1.60GHz
cpu MHz : 1600.000
cpu MHz : 1600.000

dpkg tells me:

# dpkg -C
The following packages are in a mess due to serious problems during
installation. They must be reinstalled for them (and any packages
that depend on them) to function properly:
 mysql-server-5.0 MySQL database server binaries

An attempt to install mysql-server with apt-get results in the following complaints:

# apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libnm-util0
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
  mysql-server
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
Need to get 0B/27.4MB of archives.
After this operation, 90.1kB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously deselected package mysql-server-5.0.
(Reading database ... 103942 files and directories currently installed.)
Preparing to replace mysql-server-5.0 5.0.51a-3ubuntu5.1 (using .../mysql-server-5.0_5.0.51a-3ubuntu5.1_lpia.deb) ...
/etc/lsb-base-logging.sh: line 84: INITOUTPUT: unbound variable
invoke-rc.d: initscript mysql, action "stop" failed.
dpkg: warning - old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
/etc/lsb-base-logging.sh: line 84: INITOUTPUT: unbound variable
invoke-rc.d: initscript mysql, action "stop" failed.
dpkg: error processing /var/cache/apt/archives/mysql-server-5.0_5.0.51a-3ubuntu5.1_lpia.deb (--unpack):
 subprocess new pre-removal script returned error exit status 1
/etc/lsb-base-logging.sh: line 84: INITOUTPUT: unbound variable
invoke-rc.d: initscript mysql, action "stop" failed.
/etc/lsb-base-logging.sh: line 84: INITOUTPUT: unbound variable
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error while cleaning up:
 subprocess post-installation script returned error exit status 1
Unpacking mysql-server (from .../mysql-server_5.0.51a-3ubuntu5.4_all.deb) ...
/etc/lsb-base-logging.sh: line 84: INITOUTPUT: unbound variable
invoke-rc.d: initscript mysql, action "stop" failed.
invoke-rc.d returned 1
There is a MySQL server running, but we failed in our attempts to stop it.
Stop it yourself and try again!
dpkg: error processing /var/cache/apt/archives/mysql-server_5.0.51a-3ubuntu5.4_all.deb (--unpack):
 subprocess pre-installation script returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/mysql-server-5.0_5.0.51a-3ubuntu...

Read more...

Revision history for this message
Peter Belew (peterbe) wrote :

I put INITOUTPUT=yes in /etc/default/rcS, and I was able to install mysql-server (after rebooting) from synaptic - I specifically installed the metapackage mysql-server. (Again, this is in the netbook version of hardy 8.04.2 which comes with the Dell 10v netbook).

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

Other bug subscribers

Remote bug watches

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