After creating a fresh installation of Ubuntu 24.04, I installed DEB Firefox from APT by following Mozilla’s instructions from here. But I noticed that it was secretly replaced with Snap Firefox. I was able to verify this by checking the About Firefox page. This is the third time I noticed this.
It’s a known and documented issue that Ubuntu does. They secretly install the Snap version, even if you tried to install the Deb package. This is an issue since years: https://askubuntu.com/questions/1345385/how-can-i-stop-apt-from-installing-snap-packages (posted 3 years and 7 months ago)
My problem is not like that. I’m aware that when the user runs(without adding Mozilla’s apt repository),
sudo apt install firefox
the snap version of Firefox is installed. But I never heard that, though APT is configured to install Firefox from Mozilla’s repository, the DEB version will be uninstalled and the Snap version will be installed.
Yes, that’s the exact issue. Ubuntu does that for years. You use apt to install deb, but Ubuntu installs silently the Snap version. The article I linked was talking about that almost 4 years ago and talks about how to stop that. It’s an old issue not many are aware off.