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.
Since when this became a known thing? I’m aware that the snap version is installed when the user is trying to install the deb version of Firefox by running,
sudo apt install firefox
But I never heard that the installed DEB version of Firefox is replaced by Snap version of Firefox.
The deb version is a pointer to the snap in their repos. Nothings being replaced, it no longer exists. The deb version of Firefox in Ubuntu repos is a wrapper that installs snap and has no binaries in it. Has been for 3 years or so.
It’s more than that. Ubuntu copies the Debian repos and then applies their own changes on top. Debian has a native (DEB) Firefox package, so Ubuntu specifically has to remove it for every new version.
At least a few years. I switched to Linux a year ago and that was a huge consideration for me when choosing Debian over Ubuntu.
Well then you haven’t been following it closely. As someone else said, the reason is simple: the Snap version is more recent (like it or not) and in Ubuntu
apt
is configured to take into account Snap packages.