[debian-mysql] Bug#621020: mysql-server-5.5: set -e break init script due to lsb functions

Vincent Danjean vdanjean at debian.org
Wed May 30 11:46:08 UTC 2012

Package: mysql-server-5.5
Version: 5.5.23+dfsg-2
Severity: normal


  I run into this bug today:
Setting up mysql-server-5.5 (5.5.23+dfsg-2) ...
/lib/lsb/init-functions: line 428: FANCYTTY: unbound variable
invoke-rc.d: initscript mysql, action "stop" failed.
/lib/lsb/init-functions: line 428: FANCYTTY: unbound variable
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
dpkg: dependency problems prevent configuration of mysql-server:
 mysql-server depends on mysql-server-5.5; however:
  Package mysql-server-5.5 is not configured yet.
dpkg: error processing mysql-server (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

In /lib/lsb/init-functions, at line 428, there is:
FANCYTTY=$([ -e /etc/default/rcS ] && . /etc/default/rcS && echo $FANCYTTY)
As FANCYTTY is not defined in my /etc/default/rcS and init script is
called with "set -e", the init script fails.

I will raise the severity because this bug does not only happen when
console is not working (as reported initially)


-- System Information:
Debian Release: wheezy/sid
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'stable-updates'), (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages mysql-server-5.5 depends on:
ii  adduser                3.113+nmu2        add and remove users and groups
ii  debconf [debconf-2.0]  1.5.43            Debian configuration management sy
ii  libc6                  2.13-32           Embedded GNU C Library: Shared lib
ii  libdbi-perl            1.612-1           Perl Database Interface (DBI)
ii  libgcc1                1:4.7.0-10        GCC support library
ii  libstdc++6             4.7.0-10          GNU Standard C++ Library v3
ii  lsb-base               4.1+Debian5       Linux Standard Base 4.1 init scrip
ii  mysql-client-5.5       5.5.23+dfsg-2     MySQL database client binaries
ii  mysql-common           5.5.23+dfsg-2     MySQL database common files, e.g. 
ii  mysql-server-core-5.5  5.5.23+dfsg-2     MySQL database server binaries
ii  passwd                 1:       change and administer password and
ii  perl                   5.10.1-17squeeze3 Larry Wall's Practical Extraction 
ii  psmisc                 22.16-1           utilities that use the proc file s

Versions of packages mysql-server-5.5 recommends:
ii  bsd-mailx [mailx]  8.1.2-0.20111106cvs-1 simple mail user agent
ii  libhtml-template-p 2.91-1                module for using HTML templates wi

Versions of packages mysql-server-5.5 suggests:
pn  tinyca                        <none>     (no description available)

-- Configuration Files:
/etc/logcheck/ignore.d.paranoid/mysql-server-5_5 [Errno 13] Permission denied: u'/etc/logcheck/ignore.d.paranoid/mysql-server-5_5'
/etc/logcheck/ignore.d.server/mysql-server-5_5 [Errno 13] Permission denied: u'/etc/logcheck/ignore.d.server/mysql-server-5_5'
/etc/logcheck/ignore.d.workstation/mysql-server-5_5 [Errno 13] Permission denied: u'/etc/logcheck/ignore.d.workstation/mysql-server-5_5'

-- debconf information:
  mysql-server-5.5/postrm_remove_databases: false
  mysql-server-5.5/really_downgrade: false
  mysql-server-5.5/start_on_boot: true

More information about the pkg-mysql-maint mailing list