Note that purging MySQL 5.7 server prior Installing MariaDB 10.1 won't work neither due to apparmor profile. At least, MariaDB server won't start.
See https://bugs.launchpad.net/ubuntu/+source/mariadb-10.1/+bug/1806263 Env: Ubuntu Bionic Beaver ;) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1683229 Title: package mariadb-server-10.1 failed to install since mysql-server-5.7 isn't purged To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mariadb-10.1/+bug/1683229/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs