[Bug 677413] Re: package mysql-server-5.1 5.1.37-1ubuntu5.1 failed to install/upgrade: subprocess new pre-removal script returned error exit status 1
Adnan
adnan.zein at free.fr
Tue Nov 30 17:40:31 GMT 2010
Thank you Clint for taking time to answer!
I got the mysqld is alive message,
but "mysqld" command failed "Can't open /etc/init.d/mysqld,
while stopping "mysql" gave the following output:
adnan at laptopi:~$ mysqladmin --defaults-file=/etc/mysql/debian.cnf ping -u root -p
Could not open required defaults file: /etc/mysql/debian.cnf
Fatal error in defaults handling. Program aborted
Enter password:
mysqld is alive
adnan at laptopi:~$ /bin/sh -x /etc/init.d/mysqld stop
/bin/sh: Can't open /etc/init.d/mysqld
adnan at laptopi:~$ /bin/sh -x /etc/init.d/mysql stop
+ set -e
+ set -u
+
+ test -x /usr/sbin/mysqld
+ . /lib/lsb/init-functions
+ FANCYTTY=
+ [ -e /etc/lsb-base-logging.sh ]
+ . /etc/lsb-base-logging.sh
+ CONF=/etc/mysql/my.cnf
+ dirname /etc/init.d/mysql
+ cd /etc/init.d
+ pwd -P
+ basename /etc/init.d/mysql
+ SELF=/etc/init.d/mysql
+ MYADMIN=/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf
+ ERR_LOGGER=logger -p daemon.err -t /etc/init.d/mysql -i
+ cd /
+ umask 077
+ export HOME=/etc/mysql/
+ log_daemon_msg Stopping MySQL database server mysqld
+ [ -z Stopping MySQL database server ]
+ log_use_usplash
+ [ n = y ]
+ type usplash_write
+ usplash_write TEXT Stopping MySQL database server mysqld
+ log_to_console log_daemon_msg Stopping MySQL database server mysqld
+ [ n != y ]
+ [ no != yes ]
+ readlink /proc/self/fd/0
+ stdin=/dev/pts/1
+ [ /dev/pts/1 != /dev/pts/1 ]
+ return 0
+ log_use_fancy_output
+ TPUT=/usr/bin/tput
+ EXPR=/usr/bin/expr
+ [ -t 1 ]
+ [ xxterm != x ]
+ [ xxterm != xdumb ]
+ [ -x /usr/bin/tput ]
+ [ -x /usr/bin/expr ]
+ /usr/bin/tput hpa 60
+ /usr/bin/tput setaf 1
+ [ -z ]
+ FANCYTTY=1
+ true
+ /usr/bin/tput xenl
+ /usr/bin/tput cols
+ COLS=80
+ [ 80 ]
+ [ 80 -gt 6 ]
+ /usr/bin/expr 80 - 7
+ COL=73
+ printf * Stopping MySQL database server mysqld
* Stopping MySQL database server mysqld + /usr/bin/expr 80 - 1
+ /usr/bin/tput hpa 79
+ printf
+ mysqld_status check_dead nowarn
+ /usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf ping
+ ping_output=Could not open required defaults file: /etc/mysql/debian.cnf
Fatal error in defaults handling. Program aborted
/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'adnan'@'localhost' (using password: NO)'
+ ping_alive=1
+ ps_alive=0
+ mysqld_get_param pid-file
+ /usr/sbin/mysqld --print-defaults
+ tr \n
+ grep -- --pid-file
+ tail -n 1
+ cut -d= -f2
+ pidfile=/var/run/mysqld/mysqld.pid
+ [ -f /var/run/mysqld/mysqld.pid ]
+ cat /var/run/mysqld/mysqld.pid
cat: /var/run/mysqld/mysqld.pid: Permission denied
+ ps
+ ps_alive=1
+ [ check_dead = check_alive -a 1 = 1 ]
+ [ check_dead = check_dead -a 1 = 0 -a 1 = 0 ]
+ [ nowarn = warn ]
+ return 1
+ set +e
+ /usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf shutdown
+ shutdown_out=Could not open required defaults file: /etc/mysql/debian.cnf
Fatal error in defaults handling. Program aborted
/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'adnan'@'localhost' (using password: NO)'
+ r=1
+ set -e
+ [ 1 -ne 0 ]
+ log_end_msg 1
+ [ -z 1 ]
+ log_use_usplash
+ [ n = y ]
+ type usplash_write
+ [ 1 -eq 0 ]
+ usplash_write FAILURE failed
+ log_to_console log_end_msg 1
+ [ n != y ]
+ [ no != yes ]
+ readlink /proc/self/fd/0
+ stdin=/dev/pts/1
+ [ /dev/pts/1 != /dev/pts/1 ]
+ return 0
+ [ 73 ]
+ [ -x /usr/bin/tput ]
+ printf \r
+ /usr/bin/tput hpa 73
+ [ 1 -eq 0 ]
+ printf [
[+ /usr/bin/tput setaf 1
+ printf fail
fail+ /usr/bin/tput op
+ echo ]
]
+ return 1
--
package mysql-server-5.1 5.1.37-1ubuntu5.1 failed to install/upgrade: subprocess new pre-removal script returned error exit status 1
https://bugs.launchpad.net/bugs/677413
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to mysql-dfsg-5.1 in ubuntu.
More information about the Ubuntu-server-bugs
mailing list