# Disabling AppArmor for installing PXC on ubuntu 16.04

**URL:** <https://forums.percona.com/t/disabling-apparmor-for-installing-pxc-on-ubuntu-16-04/6580>\
**Category:** Percona XtraDB Cluster 5.x\
**Created:** [September 16, 2018, 10:13am UTC](https://forums.percona.com/t/disabling-apparmor-for-installing-pxc-on-ubuntu-16-04/6580 "2018-09-16T10:13:07Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![tom256](https://avatars.discourse-cdn.com/v4/letter/t/e99b99/32.png) [@tom256](https://forums.percona.com/u/tom256)\
**Post date:** [September 18, 2018, 5:22am UTC](https://forums.percona.com/t/disabling-apparmor-for-installing-pxc-on-ubuntu-16-04/6580/8 "2018-09-18T05:22:55Z")

</div>

> [@lorraine.pocklington;52415](#):
>
> Hello there Tom
> 
> Yes the original install failed which can be seen from this:

Yes, As I’ve mentioned before there was a packages conflict in for writing in ‘/usr/share/man/man1/mysqlman.1.gz’  
I’ve solved this problem by “–force-overwrite”  
[PHP]sudo apt-get -o Dpkg::Options::=“–force-overwrite” install percona-xtradb-cluster-57[/PHP]

> [@lorraine.pocklington;52415](#):
>
> The team here say that it looks like on that node you have the mysql-client installed, and this conflicts with Percona XtraDB Cluster.

Yes, I think so, the vestacp may installed it before. By the way being mysql-client installed or not is something PXC installation process must check it before installing anything.  
Please tell the team to check it, Can they install PXC on a [vestacp](https://www.digitalocean.com/community/tutorials/how-to-install-vestacp-and-migrate-user-data) server?

> [@lorraine.pocklington;52416](#):
>
> You can’t have Oracle MySQL and Percona XtraDB Cluster code resident on the same machine, and this may have been the start of your issues here.

Now phpMyAdmin shows me I’m using Percona Server, So I don’t think I’m using MySQL anymore, Is there any way to fix this single node and use it again? for example by using:  
[PHP]SET GLOBAL pxc\_strict\_mode=MASTER;[/PHP]

> [@lorraine.pocklington;52416](#):
>
> I will refer the documentation / advice about AppArmor to the team for review, to see if there is more clarity we can add there.

I fixed the AppArmor issue by this commands:

```auto
sudo ln -s /etc/apparmor.d/usr.sbin.mysqld /etc/apparmor.d/disable/

sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld

```

Only disabling MySQL profile is better than removing the whole AppArmor which was mentioned in PXC’s installation tutorial!

---

_[View the full topic](https://forums.percona.com/t/disabling-apparmor-for-installing-pxc-on-ubuntu-16-04/6580)._
