I tried to uninstall and reinstall firefox thinking it would fix some bug I had with my microsoft 365 login. Now eventhough firefox seems to be propely installed, I can't open it with the icon, neither through the command line.
I followed the instructions from this post : Removing Firefox in Ubuntu with all add-ons like it never existed (main steps involved sudo apt-get purge firefox
and rm -r .mozilla/firefox/
(I got sacred to further delete protected files in /usr/ or /etc/ )
I reinstalled using sudo apt-get install firefox
but I get :
Reading package lists... DoneBuilding dependency tree... DoneReading state information... Donefirefox is already the newest version (1:1snap1-0ubuntu2).0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
When I type firefox
I get :
Command '/usr/bin/firefox' requires the firefox snap to be installed.Please install it with:snap install firefox
But when I snap install firefox
I get snap "firefox" is already installed, see 'snap help refresh'
I tried to restart my computer but I always get stuck. I see the firefox icon on the desktop but it doesn't launch.
Additional informations :
-Output of echo $PATH
:
/usr/local/MATLAB/R2023b/bin:/home/dsutterlin/.local/bin:/home/dsutterlin/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin
- There is a an executable file in /usr/bin/firefox
- I created a ./mozilla/ file in my /home/ but it's empty
- Ubuntu version : 22.04.4
Thanks for the help!