4

I've recently upgraded my ubuntu version from 20.04 to 22.04. After this my firefox is missing all my passwords and profile etc.

Is there any way to get them back, I did not anticipate this happening when I upgraded!

(After googling, I know that this issue is related to the new version being a snap and the old version being something else. I'm a long term Ubuntu user, but these terms mean little to me, and I choose ubuntu precisely because, in general, I don't have to be a computer scientist to get it working for my needs, so would appreciate answers in plain terms please)

Edit: have found an answer (from here) :

Uninstall firefox snap with:

sudo snap remove firefox Install firefox snap with:

sudo snap install firefox 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

This worked for me.

gaoblai
  • 103

2 Answers2

0

Probably not the best way, but I managed to recover my profile this way:

  1. Type about:profiles in the location bar.
  2. In the "Root Directory" row, take note of current profile file name and click the "Open Directory" button. Profiles are typically stored in ~/snap/firefox/common/.mozilla/firefox.
  3. Close Firefox.
  4. Backup the whole directory tree just in case.
  5. In the directory where installs.ini and profiles.ini lay around, I had two folders with random names. The empty one currently in used was the one shown in the previous screen, and had a recent modification date. My old profile with all my data had a different random name and an older modification time.
  6. I renamed the empty profile and assigned its original name to the old folder.
0

Same problem going from Ubuntu 20 to 22. Reinstalling firefox with snap did not work for me, nor did rm -rf ~/snap/firefox then snap run firefox from this answer. It tried to load the old profile, but I got a message saying "Using an older version of Firefox can corrupt bookmarks and browsing history..." and firefox launched without loading my profile.

Here's what worked for me:

  1. Find the old profile folder. Mine was in ~/.mozilla/firefox/ and is named something like n9dck3nd.default.
  2. Copy that folder to ~/snap/firefox/common/.mozilla/firefox/.
  3. Rename the old profile folder to replace the profile folder in ~/snap/firefox/common/.mozilla/firefox/. I first created a new profile by opening firefox and typing about:profiles in the address bar, but I don't think that's necessary.
  4. Go into your profile folder and rm compatibility.ini - this was causing firefox to not want to load the profile because it references the previous install of firefox.

On the next open, firefox loaded all my info and bookmarks.

Maddy
  • 1