[debian-mysql] Bug#861782: mariadb-server-10.1: Upgrade fails because mariadb-server-10.1.prerm fails to stop mysqld.

chris inkbottle007 at gmail.com
Thu May 4 01:17:19 UTC 2017

Package: mariadb-server-10.1
Version: 10.1.22-4
Severity: important

Dear Maintainer,

Upgrade from 1 month old version failed.

Installation says:

There is a MySQL server running, but we failed in our attempts to stop it.
Stop it yourself and try again!

and fails.

When looking at:
one can see:
invoke-rc.d mysql stop
pidof -c /usr/sbin/mysqld

Executing those lines myself, I get:
# invoke-rc.d mysql stop; pidof -c /usr/sbin/mysqld

# systemctl stop mariadb.service; pidof -c /usr/sbin/mysqld

However I could stop the sever as a plain user:
$ akonadictl stop

Verify it is stopped:
# pidof -c /usr/sbin/mysqld

Then the upgrade worked flawlessly:
# apt-get upgrade

A very verbose description can be found there:


-- System Information:
Debian Release: 9.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64

Kernel: Linux 4.9.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages mariadb-server-10.1 depends on:
ii  adduser                   3.115
ii  debconf [debconf-2.0]     1.5.60
ii  galera-3                  25.3.20-1
ii  gawk                      1:4.1.4+dfsg-1
ii  init-system-helpers       1.48
ii  iproute2                  4.9.0-1
ii  libaio1                   0.3.110-3
ii  libc6                     2.24-10
ii  libdbi-perl               1.636-1+b1
ii  libpam0g                  1.1.8-3.5
ii  libstdc++6                6.3.0-16
ii  lsb-base                  9.20161125
ii  lsof                      4.89+dfsg-0.1
ii  mariadb-client-10.1       10.1.22-4
ii  mariadb-common            10.1.22-4
ii  mariadb-server-core-10.1  10.1.22-4
ii  passwd                    1:4.4-4
ii  perl                      5.24.1-2
ii  psmisc                    22.21-2.1+b2
ii  rsync                     3.1.2-2
ii  socat           
ii  zlib1g                    1:1.2.8.dfsg-5

Versions of packages mariadb-server-10.1 recommends:
ii  libhtml-template-perl  2.95-2

Versions of packages mariadb-server-10.1 suggests:
ii  bsd-mailx [mailx]  8.1.2-0.20160123cvs-4
pn  mariadb-test       <none>
pn  netcat-openbsd     <none>
pn  tinyca             <none>

-- debconf information:
  mariadb-server-10.1/postrm_remove_databases: false

More information about the pkg-mysql-maint mailing list