Windows 10 will reach EOS (end of support) on October 14, 2025. For more information, see this article.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Trying to set up firefox-local for apparmor.d in Ubuntu

  • No replies
  • 0 wana tatizo hili
  • 12 views
more options

I am using Tor browser, which is based on Firefox. The 'About' tab says this: 14.5.6 (based on Mozilla Firefox 128.14.0esr)

When I sign in, it tells me that: "Some of Tor Browser's security features may offer less protection on your current operating system."

And it directs me to the following page: https://support.mozilla.org/en-US/kb/linux-security-warning?as=u&utm_source=inproduct

-- which directs me to set up a file called 'firefox-local' with specific contents. I have created this file; and pasted the recommended contents into it, and saved it.

I am then directed to issue the following command: sudo systemctl restart apparmor.service

-- which I have done. But that returns the following error: Job for apparmor.service failed because the control process exited with error code. See "systemctl status apparmor.service" and "journalctl -xeu apparmor.service" for details.

systemctl status apparmor.service gives the following output: × apparmor.service - Load AppArmor profiles

    Loaded: loaded (/usr/lib/systemd/system/apparmor.service; enabled; preset: enabled)
    Active: failed (Result: exit-code) since Thu 2025-08-28 19:51:42 CDT; 22min ago
      Docs: man:apparmor(7)
            https://gitlab.com/apparmor/apparmor/wikis/home/
   Process: 12278 ExecStart=/lib/apparmor/apparmor.systemd reload (code=exited, status=1/FAIL

URE)

  Main PID: 12278 (code=exited, status=1/FAILURE)
       CPU: 218ms

Aug 28 19:51:41 joe-Z390-AORUS-ULTRA systemd[1]: Starting apparmor.service - Load AppArmor pro files... Aug 28 19:51:41 joe-Z390-AORUS-ULTRA apparmor.systemd[12278]: Restarting AppArmor Aug 28 19:51:41 joe-Z390-AORUS-ULTRA apparmor.systemd[12278]: /lib/apparmor/apparmor.systemd: 148: [: Illegal number: yes Aug 28 19:51:41 joe-Z390-AORUS-ULTRA apparmor.systemd[12278]: Reloading AppArmor profiles Aug 28 19:51:42 joe-Z390-AORUS-ULTRA apparmor.systemd[12309]: AppArmor parser error for /etc/a pparmor.d in profile /etc/apparmor.d/foliate at line 11: syntax error, unexpected TOK_ABI, exp ecting end of file Aug 28 19:51:42 joe-Z390-AORUS-ULTRA apparmor.systemd[12278]: Error: At least one profile fail ed to load Aug 28 19:51:42 joe-Z390-AORUS-ULTRA systemd[1]: apparmor.service: Main process exited, code=e xited, status=1/FAILURE Aug 28 19:51:42 joe-Z390-AORUS-ULTRA systemd[1]: apparmor.service: Failed with result 'exit-co de'. Aug 28 19:51:42 joe-Z390-AORUS-ULTRA systemd[1]: Failed to start apparmor.service - Load AppAr mor profiles.

journalctl -xeu apparmor.service gives the following output:

Aug 28 16:28:26 joe-Z390-AORUS-ULTRA apparmor.systemd[1445]: Restarting AppArmor Aug 28 16:28:26 joe-Z390-AORUS-ULTRA apparmor.systemd[1445]: /lib/apparmor/apparmor.systemd: 1 48: [: Illegal number: yes Aug 28 16:28:26 joe-Z390-AORUS-ULTRA apparmor.systemd[1445]: Reloading AppArmor profiles Aug 28 16:28:26 joe-Z390-AORUS-ULTRA apparmor.systemd[1506]: AppArmor parser error for /etc/ap parmor.d in profile /etc/apparmor.d/foliate at line 11: syntax error, unexpected TOK_ABI, expe cting end of file Aug 28 16:28:26 joe-Z390-AORUS-ULTRA apparmor.systemd[1445]: Error: At least one profile faile d to load Aug 28 16:28:23 joe-Z390-AORUS-ULTRA systemd[1]: Starting apparmor.service - Load AppArmor pro files... ░░ Subject: A start job for unit apparmor.service has begun execution ░░ Defined-By: systemd ░░ Support: http://www.ubuntu.com/support ░░ ░░ A start job for unit apparmor.service has begun execution. ░░ ░░ The job identifier is 45. Aug 28 16:28:24 joe-Z390-AORUS-ULTRA systemd[1]: apparmor.service: Main process exited, code=e xited, status=1/FAILURE ░░ Subject: Unit process exited ░░ Defined-By: systemd ░░ Support: http://www.ubuntu.com/support ░░ ░░ An ExecStart= process belonging to unit apparmor.service has exited. ░░ ░░ The process' exit code is 'exited' and its exit status is 1. Aug 28 16:28:24 joe-Z390-AORUS-ULTRA systemd[1]: apparmor.service: Failed with result 'exit-co de'. ░░ Subject: Unit failed ░░ Defined-By: systemd ░░ Support: http://www.ubuntu.com/support ░░ ░░ The unit apparmor.service has entered the 'failed' state with result 'exit-code'. Aug 28 16:28:24 joe-Z390-AORUS-ULTRA systemd[1]: Failed to start apparmor.service - Load AppAr mor profiles. ░░ Subject: A start job for unit apparmor.service has failed ░░ Defined-By: systemd ░░ Support: http://www.ubuntu.com/support ░░ ░░ A start job for unit apparmor.service has finished with a failure. ░░ ░░ The job identifier is 45 and the job result is failed. Aug 28 19:51:41 joe-Z390-AORUS-ULTRA systemd[1]: Starting apparmor.service - Load AppArmor pro files... ░░ Subject: A start job for unit apparmor.service has begun execution ░░ Defined-By: systemd ░░ Support: http://www.ubuntu.com/support ░░ ░░ A start job for unit apparmor.service has begun execution. ░░ ░░ The job identifier is 5272. Aug 28 19:51:41 joe-Z390-AORUS-ULTRA apparmor.systemd[12278]: Restarting AppArmor Aug 28 19:51:41 joe-Z390-AORUS-ULTRA apparmor.systemd[12278]: /lib/apparmor/apparmor.systemd: 148: [: Illegal number: yes Aug 28 19:51:41 joe-Z390-AORUS-ULTRA apparmor.systemd[12278]: Reloading AppArmor profiles Aug 28 19:51:42 joe-Z390-AORUS-ULTRA apparmor.systemd[12309]: AppArmor parser error for /etc/a pparmor.d in profile /etc/apparmor.d/foliate at line 11: syntax error, unexpected TOK_ABI, exp ecting end of file Aug 28 19:51:42 joe-Z390-AORUS-ULTRA apparmor.systemd[12278]: Error: At least one profile fail ed to load Aug 28 19:51:42 joe-Z390-AORUS-ULTRA systemd[1]: apparmor.service: Main process exited, code=e xited, status=1/FAILURE ░░ Subject: Unit process exited ░░ Defined-By: systemd ░░ Support: http://www.ubuntu.com/support ░░ ░░ An ExecStart= process belonging to unit apparmor.service has exited. ░░ ░░ The process' exit code is 'exited' and its exit status is 1. Aug 28 19:51:42 joe-Z390-AORUS-ULTRA systemd[1]: apparmor.service: Failed with result 'exit-co de'. ░░ Subject: Unit failed ░░ Defined-By: systemd ░░ Support: http://www.ubuntu.com/support ░░ ░░ The unit apparmor.service has entered the 'failed' state with result 'exit-code'. Aug 28 19:51:42 joe-Z390-AORUS-ULTRA systemd[1]: Failed to start apparmor.service - Load AppAr mor profiles. ░░ Subject: A start job for unit apparmor.service has failed ░░ Defined-By: systemd ░░ Support: http://www.ubuntu.com/support ░░ ░░ A start job for unit apparmor.service has finished with a failure. ░░ ░░ The job identifier is 5272 and the job result is failed.


I don't know how to make heads or tails of this. Apparently the profile failed to load. According to the file documentation, it expects firefox to be located in '/home/<USER>/bin/firefox/' but I am running a version through Snap. and I think it is installed in '/snap/firefox/6700/usr/lib/firefox/firefox'

Is that the trouble; and how do I fix it? Grateful for any assistance; sorry for the data dump.

I am using Tor browser, which is based on Firefox. The 'About' tab says this: 14.5.6 (based on Mozilla Firefox 128.14.0esr) When I sign in, it tells me that: "Some of Tor Browser's security features may offer less protection on your current operating system." And it directs me to the following page: https://support.mozilla.org/en-US/kb/linux-security-warning?as=u&utm_source=inproduct -- which directs me to set up a file called 'firefox-local' with specific contents. I have created this file; and pasted the recommended contents into it, and saved it. I am then directed to issue the following command: sudo systemctl restart apparmor.service -- which I have done. But that returns the following error: Job for apparmor.service failed because the control process exited with error code. See "systemctl status apparmor.service" and "journalctl -xeu apparmor.service" for details. systemctl status apparmor.service gives the following output: × apparmor.service - Load AppArmor profiles Loaded: loaded (/usr/lib/systemd/system/apparmor.service; enabled; preset: enabled) Active: failed (Result: exit-code) since Thu 2025-08-28 19:51:42 CDT; 22min ago Docs: man:apparmor(7) https://gitlab.com/apparmor/apparmor/wikis/home/ Process: 12278 ExecStart=/lib/apparmor/apparmor.systemd reload (code=exited, status=1/FAIL URE) Main PID: 12278 (code=exited, status=1/FAILURE) CPU: 218ms Aug 28 19:51:41 joe-Z390-AORUS-ULTRA systemd[1]: Starting apparmor.service - Load AppArmor pro files... Aug 28 19:51:41 joe-Z390-AORUS-ULTRA apparmor.systemd[12278]: Restarting AppArmor Aug 28 19:51:41 joe-Z390-AORUS-ULTRA apparmor.systemd[12278]: /lib/apparmor/apparmor.systemd: 148: [: Illegal number: yes Aug 28 19:51:41 joe-Z390-AORUS-ULTRA apparmor.systemd[12278]: Reloading AppArmor profiles Aug 28 19:51:42 joe-Z390-AORUS-ULTRA apparmor.systemd[12309]: AppArmor parser error for /etc/a pparmor.d in profile /etc/apparmor.d/foliate at line 11: syntax error, unexpected TOK_ABI, exp ecting end of file Aug 28 19:51:42 joe-Z390-AORUS-ULTRA apparmor.systemd[12278]: Error: At least one profile fail ed to load Aug 28 19:51:42 joe-Z390-AORUS-ULTRA systemd[1]: apparmor.service: Main process exited, code=e xited, status=1/FAILURE Aug 28 19:51:42 joe-Z390-AORUS-ULTRA systemd[1]: apparmor.service: Failed with result 'exit-co de'. Aug 28 19:51:42 joe-Z390-AORUS-ULTRA systemd[1]: Failed to start apparmor.service - Load AppAr mor profiles. journalctl -xeu apparmor.service gives the following output: Aug 28 16:28:26 joe-Z390-AORUS-ULTRA apparmor.systemd[1445]: Restarting AppArmor Aug 28 16:28:26 joe-Z390-AORUS-ULTRA apparmor.systemd[1445]: /lib/apparmor/apparmor.systemd: 1 48: [: Illegal number: yes Aug 28 16:28:26 joe-Z390-AORUS-ULTRA apparmor.systemd[1445]: Reloading AppArmor profiles Aug 28 16:28:26 joe-Z390-AORUS-ULTRA apparmor.systemd[1506]: AppArmor parser error for /etc/ap parmor.d in profile /etc/apparmor.d/foliate at line 11: syntax error, unexpected TOK_ABI, expe cting end of file Aug 28 16:28:26 joe-Z390-AORUS-ULTRA apparmor.systemd[1445]: Error: At least one profile faile d to load Aug 28 16:28:23 joe-Z390-AORUS-ULTRA systemd[1]: Starting apparmor.service - Load AppArmor pro files... ░░ Subject: A start job for unit apparmor.service has begun execution ░░ Defined-By: systemd ░░ Support: http://www.ubuntu.com/support ░░ ░░ A start job for unit apparmor.service has begun execution. ░░ ░░ The job identifier is 45. Aug 28 16:28:24 joe-Z390-AORUS-ULTRA systemd[1]: apparmor.service: Main process exited, code=e xited, status=1/FAILURE ░░ Subject: Unit process exited ░░ Defined-By: systemd ░░ Support: http://www.ubuntu.com/support ░░ ░░ An ExecStart= process belonging to unit apparmor.service has exited. ░░ ░░ The process' exit code is 'exited' and its exit status is 1. Aug 28 16:28:24 joe-Z390-AORUS-ULTRA systemd[1]: apparmor.service: Failed with result 'exit-co de'. ░░ Subject: Unit failed ░░ Defined-By: systemd ░░ Support: http://www.ubuntu.com/support ░░ ░░ The unit apparmor.service has entered the 'failed' state with result 'exit-code'. Aug 28 16:28:24 joe-Z390-AORUS-ULTRA systemd[1]: Failed to start apparmor.service - Load AppAr mor profiles. ░░ Subject: A start job for unit apparmor.service has failed ░░ Defined-By: systemd ░░ Support: http://www.ubuntu.com/support ░░ ░░ A start job for unit apparmor.service has finished with a failure. ░░ ░░ The job identifier is 45 and the job result is failed. Aug 28 19:51:41 joe-Z390-AORUS-ULTRA systemd[1]: Starting apparmor.service - Load AppArmor pro files... ░░ Subject: A start job for unit apparmor.service has begun execution ░░ Defined-By: systemd ░░ Support: http://www.ubuntu.com/support ░░ ░░ A start job for unit apparmor.service has begun execution. ░░ ░░ The job identifier is 5272. Aug 28 19:51:41 joe-Z390-AORUS-ULTRA apparmor.systemd[12278]: Restarting AppArmor Aug 28 19:51:41 joe-Z390-AORUS-ULTRA apparmor.systemd[12278]: /lib/apparmor/apparmor.systemd: 148: [: Illegal number: yes Aug 28 19:51:41 joe-Z390-AORUS-ULTRA apparmor.systemd[12278]: Reloading AppArmor profiles Aug 28 19:51:42 joe-Z390-AORUS-ULTRA apparmor.systemd[12309]: AppArmor parser error for /etc/a pparmor.d in profile /etc/apparmor.d/foliate at line 11: syntax error, unexpected TOK_ABI, exp ecting end of file Aug 28 19:51:42 joe-Z390-AORUS-ULTRA apparmor.systemd[12278]: Error: At least one profile fail ed to load Aug 28 19:51:42 joe-Z390-AORUS-ULTRA systemd[1]: apparmor.service: Main process exited, code=e xited, status=1/FAILURE ░░ Subject: Unit process exited ░░ Defined-By: systemd ░░ Support: http://www.ubuntu.com/support ░░ ░░ An ExecStart= process belonging to unit apparmor.service has exited. ░░ ░░ The process' exit code is 'exited' and its exit status is 1. Aug 28 19:51:42 joe-Z390-AORUS-ULTRA systemd[1]: apparmor.service: Failed with result 'exit-co de'. ░░ Subject: Unit failed ░░ Defined-By: systemd ░░ Support: http://www.ubuntu.com/support ░░ ░░ The unit apparmor.service has entered the 'failed' state with result 'exit-code'. Aug 28 19:51:42 joe-Z390-AORUS-ULTRA systemd[1]: Failed to start apparmor.service - Load AppAr mor profiles. ░░ Subject: A start job for unit apparmor.service has failed ░░ Defined-By: systemd ░░ Support: http://www.ubuntu.com/support ░░ ░░ A start job for unit apparmor.service has finished with a failure. ░░ ░░ The job identifier is 5272 and the job result is failed. I don't know how to make heads or tails of this. Apparently the profile failed to load. According to the file documentation, it expects firefox to be located in '/home/<USER>/bin/firefox/' but I am running a version through Snap. and I think it is installed in '/snap/firefox/6700/usr/lib/firefox/firefox' Is that the trouble; and how do I fix it? Grateful for any assistance; sorry for the data dump.

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.