I am also suffering from this bug for a long time. The information that
was requested is below:

1) mysql server was running correctly and I can issue mysql command: It
returns: Server version: 5.0.75-0ubuntu10.2 (Ubuntu)

2) /var/log/daemon.log does not contain any mention of mysql

3) /var/log/kern.log does not contain any mention of mysql

4) The contents of /etc/apparmor.d/usr.sbin.mysqld is attached.

5) Result of ls -l /etc/apparmor.d/usr.sbin.mysqld*
-rw-r--r-- 1 root root 788 2009-03-30 16:18 /etc/apparmor.d/usr.sbin.mysqld

6) See attachment for /etc/mysql/my.cnf

7) Result of  ls -al /etc/mysql/conf.d/ (it is empty)
total 8
drwxr-xr-x 2 root root 4096 2008-08-15 15:35 .
drwxr-xr-x 3 root root 4096 2009-06-02 15:46 ..

8) Result of  ls -l /var/lib/mysql
total 20568
-rw-r--r-- 1 mysql mysql        0 2009-05-15 18:57 debian-5.0.flag
drwx------ 2 mysql mysql    36864 2009-10-05 11:31 entrebah
-rw-rw---- 1 mysql mysql 10485760 2009-10-11 01:24 ibdata1
-rw-rw---- 1 mysql mysql  5242880 2009-10-22 22:04 ib_logfile0
-rw-rw---- 1 mysql mysql  5242880 2008-08-15 14:16 ib_logfile1
drwxr-xr-x 2 mysql mysql     4096 2009-05-15 18:57 mysql
drwxr-xr-x 4 root  root      4096 2009-08-12 11:28 mysql.b
-rw------- 1 mysql mysql        6 2009-05-02 21:21 mysql_upgrade_info

I am adding the following

9) Result of ps aux|grep mysqld

root      2845  0.0  0.0   1872   280 ?        S    Oct22   0:00 /bin/sh 
/usr/bin/mysqld_safe
mysql     4223  0.0  0.1 127936  2252 ?        Sl   Oct22   4:18 
/usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql 
--pid-file=/var/run/mysqld/mysqld.pid --skip-external-locking --port=3306 
--socket=/var/run/mysqld/mysqld.sock
root      4224  0.0  0.0   1792   332 ?        S    Oct22   0:00 logger -p 
daemon.err -t mysqld_safe -i -t mysqld

10) Result of uname -a

Linux cdi-gateway 2.6.28-16-generic #55-Ubuntu SMP Tue Oct 20 19:48:24
UTC 2009 i686 GNU/Linux

11) The details from the "Changes Applied" details screen:

Preconfiguring packages ...
(Reading database ... 271085 files and directories currently installed.)
Preparing to replace mysql-server-5.0 5.1.30really5.0.75-0ubuntu10 (using 
.../mysql-server-5.0_5.1.30really5.0.75-0ubuntu10.2_i386.deb) ...
 * Stopping MySQL database server mysqld
   ...fail!
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
   ...fail!
invoke-rc.d: initscript mysql, action "stop" failed.
dpkg: error processing 
/var/cache/apt/archives/mysql-server-5.0_5.1.30really5.0.75-0ubuntu10.2_i386.deb
 (--unpack):
 subprocess new pre-removal script returned error exit status 1
 * Stopping MySQL database server mysqld
   ...fail!
invoke-rc.d: initscript mysql, action "stop" failed.
 * Starting MySQL database server mysqld
   ...done.
/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'debian-sys-maint'@'localhost' (using password: 
YES)'
Errors were encountered while processing:
 
/var/cache/apt/archives/mysql-server-5.0_5.1.30really5.0.75-0ubuntu10.2_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up python-pexpect (2.3-1) ...
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "/usr/bin/py_compilefiles", line 3, in ?
    import os
ImportError: No module named os
pycentral: pycentral pkginstall: error byte-compiling files (7)
pycentral pkginstall: error byte-compiling files (7)
dpkg: error processing python-pexpect (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of python-smartpm:
 python-smartpm depends on python-pexpect; however:
  Package python-pexpect is not configured yet.
dpkg: error processing python-smartpm (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of landscape-common:
 landscape-common depends on python-smartpm (>= 1.2-0ubuntu1); however:
  Package python-smartpm is not configured yet.
dpkg: error processing landscape-common (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 python-pexpect
 python-smartpm
 landscape-common

12) Besides the default repositories, I am only using:

http://archive.canonical.com/ubuntu jaunty partner


** Attachment added: "my.cnf"
   http://launchpadlibrarian.net/34807754/my.cnf

-- 
package mysql-server-5.0 5.1.30really5.0.75-0ubuntu10.2 failed to 
install/upgrade: subprocess pre-removal script returned error exit status 1
https://bugs.launchpad.net/bugs/425478
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to