Fixing Firefox Cannot Use the Profile …Error Messages
Answer:
This MozillaZine Profile-in-use article will tell you everything you need to know to solve this.
Note: In my case using Ubuntu Dapper I located these “locked” files in this directory:
/home/chiefinnovator/.mozilla/firefox/q5ocj63r.default
More generally that pattern is:
~/.mozilla/firefox/[some random looking letters.default]
And the quickest way to delete this files is to open up a terminal and run these two commands (altered for your respective locations):
$ sudo rm /home/chiefinnovator/.mozilla/firefox/q5ocj63r.default/lock
$ sudo rm /home/chiefinnovator/.mozilla/firefox/q5ocj63r.default/.parentlock