Firefox fails to start in Ubuntu 22.04 Live USB persistent on reboot

Bug #1969486 reported by Kamalakar Agashe
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
AppArmor
New
Undecided
Unassigned
snapd
New
Undecided
Unassigned

Bug Description

I have made Ubuntu 22.04 Live USB persistent using daily build iso using mkusb on Ubuntu 20.04. On first boot the firefox can be used but on reboot after saving settings firefox fails to start. The firefox command in terminal gives:
$ firefox
snap-confine has elevated permissions and it is not confined but should be. Refusing to continue to avoid permission escalation attacks

This is happening because Live mode breaks AppArmor.

The workaround is as follows:
In Live Persistent mode:
$ sudo mkdir /lib/systemd/system/apparmor.service.d

to create a directory apparmor.service.d in /lib/systemd/system/

sudo gedit /lib/systemd/system/apparmor.service.d/30_live_mode.conf

to create config file in the new directory

Paste
[Unit]
ConditionPathExists=

Save and reboot.

and Firefox works!

Revision history for this message
Kamalakar Agashe (kagashe) wrote :
Revision history for this message
sudodus (nio-wiklund) wrote :

mkusb version 12.7.4 is in the unstable PPA now, and Firefox works for me, at least with standard Ubuntu and Lubuntu [persistent live made by dus]. Please test that it works for you too.

Revision history for this message
Kamalakar Agashe (kagashe) wrote :

Downloaded and installed mkusb version 12.7.4 on Ubuntu 20.04, made new persistent usb and tested. It works for me as well. Thank you for releasing this mkusb version just in time for Ubuntu 22.04 released on 21st April 2022.
This bug may be marked appropriately.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.