Score:5

Double Firefox icons and can't uninstall Firefox after upgrading Ubuntu from 20.04 to 21.10

iq flag

I upgraded my system from Ubuntu 20.04 to 21.10. After upgrading, I noticed I had 2 Firefox icons. So, I decided to reinstall it. I tried

sudo apt purge firefox && sudo apt autoremove

But, it only removed one icon. After that, I logged out and logged back in. But, It didn't help. Then, I tried,

sudo apt list --installed | grep firefox

and uninstalled all the packages. It still didn't work. So, I followed this question's answer, Removing Firefox in Ubuntu with all add-ons like it never existed. It didn't help either. Now, if I try,

firefox -v

I get the version of firefox & I can open firefox from Applications. But, if I try uninstalling firefox again, I get

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

How, do I uninstall Firefox? I'm asking this question from Google Chrome.

Liso avatar
sd flag
It seems to me, the problem is not firefox package, but you had two different dekstop entries for firefox. Try `sudo find / -type f -name "firefox*.desktop"` and see if it comes with anything.
Abir Sheikh avatar
iq flag
@Liso Hello, I can open firefox even after this steps. And, as you asked, If I try, `sudo find / -type f -name "firefox*.desktop"`, I get `/snap/firefox/631/firefox.desktop /snap/firefox/631/meta/gui/firefox.desktop /var/lib/snapd/desktop/applications/firefox_firefox.desktop find: ‘/run/user/1000/doc’: Permission denied find: ‘/run/user/1000/gvfs’: Permission denied`
guiverc avatar
cn flag
An upgrade from 20.04 should currently only take you to 21.04 (ie. next *supported* release) - so you've gone outside of the intended upgrade paths. Your issue is likely the consequence of how you forced your *unsupported* upgrade.. If moving from 21.04 to 21.10; in some cases no `firefox` changes occur; in others the *deb* package gets removed & replaced by a `firefox` snap; but 20.04 to 21.10 isn't supported yet (and won't be till 21.04 reaches EOL)
Score:7
sd flag

From your reply, I see you still have snap version of firefox. Try uninstalling it.

sudo snap remove firefox
Abir Sheikh avatar
iq flag
Thanks, it helped me a lot. From where should I reinstall firefox now? APT or SNAP ?
Liso avatar
sd flag
Well if you ask me, I prefer apt over snap, it's easier to manage and I'm more familiar with it. But the choice is yours.
Abir Sheikh avatar
iq flag
Thanks for your advice ^_^
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.