Setting up libpq-dev (8.1.5-2) ... Setting up apache2-mpm-prefork (2.2.3-3.2) ... Starting web server (apache2)...httpd (pid 3918) already running . Setting up apache2 (2.2.3-3.2) ... dpkg: error processing mysql-server-5.0 (--configure): Package is in a very bad inconsistent state - you should reinstall it before attempting configuration. Setting up mailman (2.1.9-4) ... Installing site language en ............................................ done. No updates are necessary. * Site list for mailman (usually named mailman) missing. * Please create it; until then, mailman will refuse to start. Setting up libstdc++6-4.1-dev (4.1.1-21) ... Setting up g++-4.1 (4.1.1-21) ... Errors were encountered while processing: mysql-server-5.0 10:00:25@jindal # dpkg --configure -a dpkg: error processing mysql-server-5.0 (--configure): Package is in a very bad inconsistent state - you should reinstall it before attempting configuration. Errors were encountered while processing: mysql-server-5.0 10:08:54@jindal # apt-get install --reinstall mysql-server Reading package lists... Done Building dependency tree... Done The following extra packages will be installed: mysql-server-5.0 Suggested packages: tinyca Recommended packages: mailx The following NEW packages will be installed mysql-server The following packages will be upgraded: mysql-server-5.0 1 upgraded, 1 newly installed, 0 to remove and 403 not upgraded. 1 not fully installed or removed. Need to get 44.7kB/25.2MB of archives. After unpacking 618kB of additional disk space will be used. Do you want to continue [Y/n]? y Abort. 10:09:07@jindal # apt-get install --reinstall mysql-server Reading package lists... Done Building dependency tree... Done The following extra packages will be installed: mysql-server-5.0 Suggested packages: tinyca Recommended packages: mailx The following NEW packages will be installed mysql-server The following packages will be upgraded: mysql-server-5.0 1 upgraded, 1 newly installed, 0 to remove and 403 not upgraded. 1 not fully installed or removed. Need to get 44.7kB/25.2MB of archives. After unpacking 618kB of additional disk space will be used. Do you want to continue [Y/n]? y WARNING: The following packages cannot be authenticated! mysql-server-5.0 mysql-server Install these packages without verification [y/N]? y Get: 1 http://ftp.us.debian.org unstable/main mysql-server 5.0.30-2 [44.7kB] Fetched 44.7kB in 6s (6562B/s) Preconfiguring packages ... (Reading database ... 320925 files and directories currently installed.) Preparing to replace mysql-server-5.0 5.0.27-1 (using .../mysql-server-5.0_5.0.30-2_i386.deb) ... Stopping MySQL database server: mysqld. /etc/lsb-base-logging.sh: line 42: RUNLEVEL: 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 ... Stopping MySQL database server: mysqld. /etc/lsb-base-logging.sh: line 42: RUNLEVEL: unbound variable invoke-rc.d: initscript mysql, action "stop" failed. dpkg: error processing /var/cache/apt/archives/mysql-server-5.0_5.0.30-2_i386.deb (--unpack): subprocess new pre-removal script returned error exit status 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 while cleaning up: subprocess post-installation script killed by signal (Interrupt) Selecting previously deselected package mysql-server. Unpacking mysql-server (from .../mysql-server_5.0.30-2_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.30-2_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.30-2_i386.deb /var/cache/apt/archives/mysql-server_5.0.30-2_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1) 10:10:43@jindal # apt-get install --reinstall mysql-server Reading package lists... Done Building dependency tree... Done The following extra packages will be installed: mysql-server-5.0 Suggested packages: tinyca Recommended packages: mailx The following NEW packages will be installed mysql-server The following packages will be upgraded: mysql-server-5.0 1 upgraded, 1 newly installed, 0 to remove and 403 not upgraded. 1 not fully installed or removed. Need to get 0B/25.2MB of archives. After unpacking 618kB of additional disk space will be used. Do you want to continue [Y/n]? y WARNING: The following packages cannot be authenticated! mysql-server-5.0 mysql-server Install these packages without verification [y/N]? y Preconfiguring packages ... (Reading database ... 320925 files and directories currently installed.) Preparing to replace mysql-server-5.0 5.0.27-1 (using .../mysql-server-5.0_5.0.30-2_i386.deb) ... Stopping MySQL database server: mysqld. /etc/lsb-base-logging.sh: line 42: RUNLEVEL: 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 ... Stopping MySQL database server: mysqld. /etc/lsb-base-logging.sh: line 42: RUNLEVEL: unbound variable invoke-rc.d: initscript mysql, action "stop" failed. dpkg: error processing /var/cache/apt/archives/mysql-server-5.0_5.0.30-2_i386.deb (--unpack): subprocess new pre-removal script returned error exit status 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 while cleaning up: subprocess post-installation script killed by signal (Interrupt) Unpacking mysql-server (from .../mysql-server_5.0.30-2_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.30-2_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.30-2_i386.deb /var/cache/apt/archives/mysql-server_5.0.30-2_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1)