6

I upgraded 21.04 to 21.10 and have a couple of issues which I'll separate out. The first is Firefox will not launch. Or rather it does, but only to give the error

Your Firefox profile cannot be loaded. It may be missing or inaccessible.

There doesn't seem to be any way around the error message. I had Firefox running successfully under 21.04 before the upgrade.

mook765
  • 15,925
Paul
  • 71

3 Answers3

6

I had the same issue. Here is what I did to quickly fix this issue.

  1. Uninstall firefox snap with:

    sudo snap remove firefox
    
  2. Install firefox snap with:

    sudo snap install firefox
    
  3. Run snap with:

    snap run firefox
    

With the last command you should see the following lines in the terminal:

Importing existing firefox profiles from /home/xxxxxxx/.mozilla/firefox
Found default profile: xxxxxxxx.default
Import done in 1.826 s

After that all bookmarks and login/password should be back.

Error404
  • 7,440
Mathieu
  • 161
  • You have to do this while the previous .deb version is installed still! See https://askubuntu.com/a/1289004/14747. In 22.04 I had to reinstall the firefox .deb using these instructions: https://www.omgubuntu.co.uk/2022/04/how-to-install-firefox-deb-apt-ubuntu-22-04 . I also had to use the --allow-downgrade flag according to here: https://shkspr.mobi/blog/2021/10/how-to-fix-an-upgraded-firefox-profile/ – krumpelstiltskin May 02 '22 at 11:48
  • 1
    In my case during upgrade 20.04.5 > 22.04.1 profiles were not transferred for other than the primary user. The even faster fix was: 1. close firefox 2. rm -rf ~/snap/firefox 3. snap run firefox (import will start). See https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1969910 --- Note: I would be afraid that sudo snap remove firefox could affect profiles of all the users on the system :( – pabouk - Ukraine stay strong Oct 17 '22 at 19:38
  • @pabouk-Ukrainestaystrong thanks a lot for your comment - I made it into an answer :) – Victor Parmar Nov 01 '22 at 14:35
  • The fix @Mathieu posted worked for me in a UTM-launched aarch64 Ubuntu 22.04 (and as a bonus it doesn't directly mess with the snap implementation which theoretically could change in future), though my CLI error was a bit different: ```missing profile snap.firefox.firefox. Please make sure that the snapd.apparmor service is enabled and started
    
    
    – pzrq Mar 18 '24 at 09:41
5

The Firefox snap app is the default web browser in Ubuntu 21.10. You can uninstall the snap version and install the .deb version with the command:

sudo apt install firefox && sudo snap remove firefox

The .deb version of Firefox should be able to see your profile.

karel
  • 114,770
Archisman Panigrahi
  • 28,338
  • 18
  • 105
  • 212
1

The simplest solution that works for me was as follows:

  1. close firefox
  2. rm -rf ~/snap/firefox
  3. snap run firefox

Upgrade from 20.04.5 > 22.04.1. Per https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1969910 and thanks to @pabouk for the solution above.