[debian-mysql] Bug#841345: mysql-server-5.7: Unable to switch from mariadb to mysql, "downgrade" is aborted

Felipe Sateler fsateler at debian.org
Wed Oct 19 16:49:54 UTC 2016

Package: mysql-server-5.7
Version: 5.7.15-1
Severity: important

Switching from mariadb to mysql fails with the following error message:

Aborting downgrade from (at least) 10.0 to 5.7.
If are sure you want to downgrade to 5.7, remove the file
/var/lib/mysql/debian-*.flag and try installing again.

The test[1] seems to be a bit naive, given that mariadb uses the same
flag file.

Mariadb and mysql are supposed to be drop-in replacements, so switching
between them should be supported.

[1] https://sources.debian.net/src/mysql-5.7/5.7.15-1/debian/mysql-server-5.7.preinst/#L81-L87

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.7.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

More information about the pkg-mysql-maint mailing list