Failure to install: pre-removal script returned error exit status 1

Bug #397832 reported by Ahop
36
This bug affects 9 people
Affects Status Importance Assigned to Milestone
mysql-dfsg-5.1 (Ubuntu)
Expired
Medium
Unassigned

Bug Description

I was trying to upgrade from MySQL 5.0.75 to 5.1 when I received the below error:

E: mysql-server-5.0: subprocess pre-removal script returned error exit status 1

It appears that there is an issue with removing the existing package.

Revision history for this message
Ahop (ahop63) wrote :

apt-get -y --force-yes -f install mysql-client mysql-server mysql-admin ..

Reading package lists...
Building dependency tree...
Reading state information...
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
  mysql-admin: Depends: mysql-gui-tools-common (= 5.0r12-1ubuntu1) but it is not going to be installed
               Recommends: mysql-query-browser but it is not going to be installed
  mysql-client: Depends: mysql-client-5.1 but it is not going to be installed
  mysql-server: Depends: mysql-server-5.1 but it is not going to be installed
  mysql-server-5.0: Depends: mysql-client-5.0 (>= 5.1.30really5.0.75-0ubuntu10.2) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Revision history for this message
Mathias Gug (mathiaz) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better.

Could you please provide the following information:

 * content of /var/log/daemon.log related to mysql processes:

    /var/log/daemon.log

 * apparmor audit messages related to mysqld:

    /var/log/kern.log

 * mysqld apparmor profile:

    /etc/apparmor.d/usr.sbin.mysqld

 * list of mysqld apparmor profiles:

    ls -l /etc/apparmor.d/usr.sbin.mysqld*

 * mysql configuration stripped of private information (such as password):

    /etc/mysql/my.cnf

 * extra mysql configuration from the conf.d directory:

    /etc/mysql/conf.d/

 * directory listing of mysql datadir (by default /var/lib/mysql):

    ls -l /var/lib/mysql

Changed in mysql-dfsg-5.1 (Ubuntu):
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
Ahop (ahop63) wrote : Re: [Bug 397832] Re: Failure to install

Sure thing... I will try to get to it in the next couple days. My apologies
for any delay.

On Tue, Sep 8, 2009 at 4:38 PM, Mathias Gug <email address hidden> wrote:

> Thank you for taking the time to report this bug and helping to make
> Ubuntu better.
>
> Could you please provide the following information:
>
> * content of /var/log/daemon.log related to mysql processes:
>
> /var/log/daemon.log
>
> * apparmor audit messages related to mysqld:
>
> /var/log/kern.log
>
> * mysqld apparmor profile:
>
> /etc/apparmor.d/usr.sbin.mysqld
>
> * list of mysqld apparmor profiles:
>
> ls -l /etc/apparmor.d/usr.sbin.mysqld*
>
> * mysql configuration stripped of private information (such as
> password):
>
> /etc/mysql/my.cnf
>
> * extra mysql configuration from the conf.d directory:
>
> /etc/mysql/conf.d/
>
> * directory listing of mysql datadir (by default /var/lib/mysql):
>
> ls -l /var/lib/mysql
>
>
> ** Changed in: mysql-dfsg-5.1 (Ubuntu)
> Importance: Undecided => Medium
>
> ** Changed in: mysql-dfsg-5.1 (Ubuntu)
> Status: New => Incomplete
>
> --
> Failure to install
> https://bugs.launchpad.net/bugs/397832
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “mysql-dfsg-5.1” package in Ubuntu: Incomplete
>
> Bug description:
> I was trying to upgrade from MySQL 5.0.75 to 5.1 when I received the below
> error:
>
> E: mysql-server-5.0: subprocess pre-removal script returned error exit
> status 1
>
> It appears that there is an issue with removing the existing package.
>

Revision history for this message
Chuck Short (zulcss) wrote : Re: Failure to install

We'd like to figure out what's causing this bug for you, but we haven't heard back from you in a while. Could you please provide the requested information? Thanks!

Revision history for this message
Ahop (ahop63) wrote :
Download full text (5.6 KiB)

 * content of /var/log/daemon.log related to mysql processes:

   N/A

 * apparmor audit messages related to mysqld:

    N/A

 * mysqld apparmor profile:

# vim:syntax=apparmor
# Last Modified: Tue Jun 19 17:37:30 2007
#include <tunables/global>

/usr/sbin/mysqld {
  #include <abstractions/base>
  #include <abstractions/nameservice>
  #include <abstractions/user-tmp>
  #include <abstractions/mysql>
  #include <abstractions/winbind>

  capability dac_override,
  capability sys_resource,
  capability setgid,
  capability setuid,

  network tcp,

  /etc/hosts.allow r,
  /etc/hosts.deny r,

  /etc/mysql/*.pem r,
  /etc/mysql/conf.d/ r,
  /etc/mysql/conf.d/* r,
  /etc/mysql/my.cnf r,
  /usr/sbin/mysqld mr,
  /usr/share/mysql/** r,
  /var/log/mysql.log rw,
  /var/log/mysql.err rw,
  /var/lib/mysql/ r,
  /var/lib/mysql/** rwk,
  /var/log/mysql/ r,
  /var/log/mysql/* rw,
  /var/run/mysqld/mysqld.pid w,
  /var/run/mysqld/mysqld.sock w,
}

 * list of mysqld apparmor profiles:

    -rw-r--r-- 1 root root 788 2009-05-14 06:39 /etc/apparmor.d/usr.sbin.mysqld

 * mysql configuration stripped of private information (such as password):

    #
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
#
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
#
# For explanations see
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html

# This will be passed to all mysql clients
# It has been reported that passwords should be enclosed with ticks/quotes
# escpecially if they contain "#" chars...
# Remember to edit /etc/mysql/debian.cnf when changing the socket location.
[client]
port = 3306
socket = /var/run/mysqld/mysqld.sock

# Here is entries for some specific programs
# The following values assume you have at least 32M ram

# This was formally known as [safe_mysqld]. Both versions are currently parsed.
[mysqld_safe]
socket = /var/run/mysqld/mysqld.sock
nice = 0

[mysqld]
#
# * Basic Settings
#
user = mysql
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
port = 3306
basedir = /usr
datadir = /var/lib/mysql
tmpdir = /tmp
language = /usr/share/mysql/english
skip-external-locking
#
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
bind-address = 127.0.0.1
#
# * Fine Tuning
#
key_buffer = 16M
max_allowed_packet = 16M
thread_stack = 128K
thread_cache_size = 8
# This replaces the startup script and checks MyISAM tables if needed
# the first time they are touched
myisam-recover = BACKUP
#max_connections = 100
#table_cache = 64
#thread_concurrency = 10
#
# * Query Cache Configuration
#
query_cache_limit = 1M
query_cache_size = 16M
#
# * Logging and Replication
#
# Both location gets rotated by the cronjob.
# Be aware that this log type is a performance killer.
# As of 5.1 you can enable the log at runtime!
#general_log_file = /var/log/m...

Read more...

Revision history for this message
Ahop (ahop63) wrote :

My apologies for the delay. I support you guys in what you are doing, so I am truly sorry for not being cooperative more quickly.

Revision history for this message
Mathias Gug (mathiaz) wrote :

Do you still have the terminal log of the package upgrade?

Revision history for this message
Ahop (ahop63) wrote : Re: [Bug 397832] Re: Failure to install

I'd have to check. I'll take a look.

On Tue, Mar 30, 2010 at 3:29 PM, Mathias Gug <email address hidden> wrote:

> Do you still have the terminal log of the package upgrade?
>
> --
> Failure to install
> https://bugs.launchpad.net/bugs/397832
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “mysql-dfsg-5.1” package in Ubuntu: Incomplete
>
> Bug description:
> I was trying to upgrade from MySQL 5.0.75 to 5.1 when I received the below
> error:
>
> E: mysql-server-5.0: subprocess pre-removal script returned error exit
> status 1
>
> It appears that there is an issue with removing the existing package.
>
> To unsubscribe from this bug, go to:
>
> https://bugs.launchpad.net/ubuntu/+source/mysql-dfsg-5.1/+bug/397832/+subscribe
>

Revision history for this message
Henk van Roon (henk-van-roon-goderie) wrote :

Mathias,

I don't have the original log, but this is what shows up if I run the
update manager. I tries to install the upgrade each time I run it.

I'm without MySQL for quit a while now. Would it be possible to
un-install it completely and re-install it? Would I need to re-install
an re-configure apache2 as well?

thanks in advance,
kind regards,
Henk

On Tue, 2010-03-30 at 19:29 +0000, Mathias Gug wrote:

> Do you still have the terminal log of the package upgrade?
>

Revision history for this message
Henk van Roon (henk-van-roon-goderie) wrote :

Hi,

I the previous email the screendump was not included. I apologize. Here
it is.

kind regards,
Henk

On Tue, 2010-03-30 at 22:22 +0200, Henk van Roon wrote:

> Mathias,
>
> I don't have the original log, but this is what shows up if I run the
> update manager. I tries to install the upgrade each time I run it.
>
>
>
> I'm without MySQL for quit a while now. Would it be possible to
> un-install it completely and re-install it? Would I need to
> re-install an re-configure apache2 as well?
>
> thanks in advance,
> kind regards,
> Henk
>
>
> On Tue, 2010-03-30 at 19:29 +0000, Mathias Gug wrote:
>
> > Do you still have the terminal log of the package upgrade?
> >

Revision history for this message
Mathias Gug (mathiaz) wrote :

@Henk: the package upgrade fails to *start* mysql which is a different issue. Please open a new bug.

summary: - Failure to install
+ Failure to install: pre-removal script returned error exit status 1
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for mysql-dfsg-5.1 (Ubuntu) because there has been no activity for 60 days.]

Changed in mysql-dfsg-5.1 (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.