Package: mysql-server-5.0
Version: 5.0.27-1
Severity: important
Hello,
mysql-server cannot be started or stopped if Splashy is installed. It
cannot be installed nor removed either (since installation and
removal scripts start and stop the server).
Here is the output while trying to install mysql-server package (with
Splashy already installed) :
=
# LANGUAGE=en_US aptitude install mysql-server
Reading package lists... Done
Building dependency tree... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
The following NEW packages will be automatically installed:
mysql-server-5.0
The following NEW packages will be installed:
mysql-server mysql-server-5.0
0 packages upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/25,1MB of archives. After unpacking 67,6MB will be used.
Do you want to continue? [Y/n/?]
Writing extended state information... Done
Preconfiguring packages ...
Selecting previously deselected package mysql-server-5.0.
(Reading database ... 207627 files and directories currently installed.)
Unpacking mysql-server-5.0 (from .../mysql-server-5.0_5.0.27-1_i386.deb)
...
Selecting previously deselected package mysql-server.
Unpacking mysql-server (from .../mysql-server_5.0.27-1_all.deb) ...
Stopping MySQL database server: mysqld.
/etc/lsb-base-logging.sh: line 42: RUNLEVEL: 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.27-1_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.27-1_all.deb
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.27-1) ...
Stopping MySQL database server: mysqld.
/etc/lsb-base-logging.sh: line 42: RUNLEVEL: unbound variable
invoke-rc.d: initscript mysql, action "stop" failed.
Starting MySQL database server: mysqld.
/etc/lsb-base-logging.sh: line 42: RUNLEVEL: unbound variable
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing mysql-server-5.0 (--configure):
subprocess post-installation script killed by signal (Interrupt)
Errors were encountered while processing:
mysql-server-5.0
#
==
(I hit CTRL-C at the end, after "start" failed, since nothings happens
for several minutes).
Purging splashy package cause the problem to disapear.
It seems to be due to the "set -u" command, at the beginning of
/etc/init.d/mysql script, which cause the script to abort, since
$RUNLEVEL is not defined. Other init.d's scripts like Apache doesn't set
this flag, but I don't know what is the correct behavior to have in this
case.
Thanks,
- Jonathan
-- System Information:
Debian Release: 4.0
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-2-k7
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)
Versions of packages mysql-server-5.0 depends on:
ii adduser 3.99 Add and remove users and groups
ii debconf [debconf-2.0] 1.5.9Debian configuration management sy
ii libc6 2.3.6.ds1-8 GNU C Library: Shared libraries
ii libdbi-perl 1.53-1 Perl5 database interface by Tim Bu
ii libgcc1 1:4.1.1-20 GCC support library
ii libmysqlclient15off 5.0.27-1 mysql database client library
ii libncurses5 5.5-5Shared libraries for terminal hand
ii libreadline55.2-1GNU readline and history libraries
ii libstdc++6 4.1.1-20 The GNU Standard C++ Library v3
ii libwrap07.6.dbs-11 Wietse Venema's TCP wrappers libra
ii lsb-base3.1-22 Linux Standard Base 3.1 init scrip
ii mysql-client-5.05.0.27-1 mysql database client binaries
ii mysql-common5.0.27-1 mysql database common files (e.g.
ii passwd 1:4.0.18.1-5 change and administer password and
ii perl5.8.8-6.1Larry Wall's Practical Extraction
ii psmisc 22.3-1 Utilities that use the proc filesy
ii zlib1g 1:1.2.3-13 compression library - runtime
Versions of packages mysql-server-5.0 recommends:
ii mailx1:8.1.2-0.20050715cvs-1 A simple mail user agent
-- debconf information:
mysql-server-5.0/really_downgrade: false
* mysql-server-5.0/need_sarge_compat: false
mysql-server-5.0/start_on_boot: true
mysql-server/error_setting_password:
mysql-server-5.0/nis_warning:
mysql-se