Last active
November 2, 2025 18:26
-
-
Save shqear93/8be4c58adff3c27f53096105e6ca2c7b to your computer and use it in GitHub Desktop.
Disable AppArmor completely without breaking snapd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # It was a nightmare when! aftrer installing docker i couldn't expose any port | |
| # so far because apparmor was preventing docker from controlling the network | |
| # I spent days looking for the solution till I found this documentation <3 : | |
| # https://wiki.debian.org/AppArmor/HowToUse | |
| sudo mkdir -p /etc/default/grub.d | |
| echo 'GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT apparmor=0"' \ | |
| | sudo tee /etc/default/grub.d/apparmor.cfg | |
| sudo update-grub | |
| sudo reboot |
My hero!
**CK SOFTWARE ELITISM WHERE SMART@SSES PRECONFIG CRIPLED-UP NONSENSES FOR YOU! SCREW CRAPPARMOR! WHEN I WANT TO FEEL LIKE GERIATRIC IN SOFTWARE CAUSE NOTHING WORKS I WILL BE SURE TO CHECKOUT CRAPPARMOR!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
👍