FireFox won't launch, "Error: Access was denied while trying to open files in your profile directory"

Found the below link that is related.

https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1180227

I did the following:

ls .cache/mozilla/
   ls: cannot open directory .cache/mozilla/: Permission denied

chown -R user.user .cache/mozilla/
    chown: cannot read directory ‘.cache/mozilla/’: Permission denied

sudo chown -R user.user .cache/mozilla/
firefox 

This fix my problem.


You have to remove/gain access on 2 folders:

~/.mozilla/firefox
~/.cache/mozilla

The .cache folder you can just delete :)


This seems to a known, system-dependent bug. Have a look at the link added at end (your precise error message). Following another link on that page, only suggestions I saw were to disable AppArmor if you run it; or roll FF back: Bug Report.

If nothing works, maybe give Chrome a try.