Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.2.14
-
Debian 9.4 (stretch)
Description
Hi,
Following the upgrade guidelines (https://mariadb.com/kb/en/library/upgrading-from-mariadb-101-to-mariadb-102/), I hit this issue when upgrading from 10.1 to 10.2 on Debian 9.4 :
Preparing to unpack .../mariadb-server-10.2_10.2.14+maria~stretch_amd64.deb ...
|
/var/lib/mysql: found previous version 10.1
|
Failed to stop mysql.service: Unit mysql.service not loaded.
|
invoke-rc.d: initscript mysql, action "stop" failed.
|
invoke-rc.d returned 5
|
There is a MySQL server running, but we failed in our attempts to stop it.
|
Stop it yourself and try again!
|
dpkg: error processing archive /var/cache/apt/archives/mariadb-server-10.2_10.2.14+maria~stretch_amd64.deb (--unpack):
|
subprocess new pre-installation script returned error exit status 1
|
Selecting previously unselected package mariadb-client.
|
Preparing to unpack .../mariadb-client_10.2.14+maria~stretch_all.deb ...
|
Unpacking mariadb-client (10.2.14+maria~stretch) ...
|
Selecting previously unselected package mariadb-server.
|
Preparing to unpack .../mariadb-server_10.2.14+maria~stretch_all.deb ...
|
Unpacking mariadb-server (10.2.14+maria~stretch) ...
|
Errors were encountered while processing:
|
/var/cache/apt/archives/mariadb-server-10.2_10.2.14+maria~stretch_amd64.deb
|
E: Sub-process /usr/bin/dpkg returned an error code (1)
|
Debian dpkg preinst checks if mysql is running using pgrep mariadb-server-10.2.preinst but in my case I'm using prometheus/mysqld_exporter and the actual pgrep match it too.
So I suggest using "pgrep -x mysqld" instead of "pgrep mysql"
Regards,
Puckel_
Attachments
Issue Links
- duplicates
-
MDEV-19822 MariaDB 10.4 install fails on Ubuntu 18.04 if Prometheus mysqld_exporter is running
- Closed