I created a file /etc/apparmor.d/abstractions/mysql and inserted the folowing:
<pre> # ------------------------------------------------------------------ # # Copyright (C) 2002-2006 Novell/SUSE # Copyright (C) 2013 Christian Boltz # # This program is free software; you can redistribute it and/or # modify it under the terms of version 2 of the GNU General Public # License published by the Free Software Foundation. # # ------------------------------------------------------------------ /var/lib/mysql{,d}/mysql{,d}.sock rw, /{var/,}run/mysql{,d}/mysql{,d}.sock rw, /usr/share/{mysql,mysql-community-server,mariadb}/charsets/ r, /usr/share/{mysql,mysql-community-server,mariadb}/charsets/*.xml r, </pre> -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to apparmor in Ubuntu. https://bugs.launchpad.net/bugs/1808360 Title: AppArmor fails after MySQL installation using 18.04.1 LTS Status in apparmor package in Ubuntu: New Bug description: This is run and returned under root. 08:12 ~: aa-complain /etc/apparmor.d ERROR: Include file /etc/apparmor.d/abstractions/mysql not found 08:18 ~: apt-cache policy apparmor.d libapparmor-dev: Installed: (none) Candidate: 2.12-4ubuntu5.1 Version table: 2.12-4ubuntu5.1 500 500 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages 500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages 2.12-4ubuntu5 500 500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/1808360/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp