I realise this is probably a bad question but I'm stuck. After a lot of googling I'm struggling to fix the problem. I've been trying to get AppArmor to work on Debian. I've been following the instructions from https://wiki.debian.org/AppArmor/HowToUse.
Part of the instruction told me to do
sudo perl -pi -e 's,GRUB_CMDLINE_LINUX="(.*)"$,GRUB_CMDLINE_LINUX="$1 apparmor=1 security=apparmor",' /etc/default/grub
Because I didn't understand the
perl command I did this in my VM and now I can't use Firefox, not even in safemode. I get a segfault.
Fontconfig error: Cannot load default config file (firefox:3875): Pango-WARNING **: failed to choose a font, expect ugly output. engine-type='PangoRenderFc', script='common' Crash Annotation GraphicsCriticalError: |[GFX1]: no fonts - init: 1 fonts: 0 loader: 0 (t=0.206719) [GFX1]: no fonts - init: 1 fonts: 0 loader: 0  ###!!! ABORT: unable to find a usable font (Sans): file /tmp/buildd/firefox-47.0.1/gfx/thebes/gfxTextRun.cpp, line 1875  ###!!! ABORT: unable to find a usable font (Sans): file /tmp/buildd/firefox-47.0.1/gfx/thebes/gfxTextRun.cpp, line 1875 Segmentation fault apt-cache policy apparmor apparmor: Installed: 2.9.0-3 Candidate: 2.9.0-3 Version table: 2.10.95-4~bpo8+2 0 100 http://ftp.uk.debian.org/debian/ jessie-backports/main amd64 Packages *** 2.9.0-3 0 500 http://ftp.uk.debian.org/debian/ jessie/main amd64 Packages 500 http://mirror.bytemark.co.uk/debian/ jessie/main amd64 Packages 100 /var/lib/dpkg/status
I know this is looking for a font that doesn't exist because I checked the path but now I'm at an impasse, out of ideas and can't find anymore help from Google.