Ubuntu – How to remove firefox installed from a debian package

14.04chromebookfirefoxuninstallupgrade

I was having some performance issues with firefox 46 so I downgraded it to previous version by removing firefox 46 and installing from an debian package of older version firefox. Later I upgraded the firefox back to 47. So right now the firefox on my computer is "Mozilla Build of Firefox". Now I want to completely remove firefox but after using sudo apt-get purge firefox firefox is still there. I could still open the firefox browser. Using whereis firefox command the following addresses are given:

/usr/bin/firefox /etc/firefox /usr/lib/firefox /usr/bin/X11/firefox

Please help me if you know how to completely remove the firefox browser and all the addons. My computer is really lacking spaces and any bit would help. Thank you very much.

P.S. I am using 14.04 on a Chromebook.

P.S.S This is what I got after using the purge command mentioned above:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'firefox' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

Best Answer

I think the following link will help those who have the same problem as me: FirefoxNewVersion

Basically under the Uninstallation section of the document, do the following:

  1. Delete the ~/firefox directory and the ~/bin/firefox file

  2. Run firefox -ProfileManager and delete mozilla-build

In my case I just deleted all the firefox folders mentioned above but I don't think this is a very clean removal of Mozilla-Build-of-Firefox...