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.

    • IsoKiero@sopuli.xyz
      link
      fedilink
      English
      arrow-up
      16
      ·
      11 hours ago

      But it’s not obvious either. When I say ‘apt install firefox’, specially after adding their repository to sources.list, I’d expect to get a .deb from mozilla. Silently overriding my commands rubs me in a very wrong way.

      • BluescreenOfDeath@lemmy.world
        link
        fedilink
        English
        arrow-up
        4
        ·
        edit-2
        9 hours ago

        It takes a little more than just adding a different repository to your package manager, you have to tell apt which to prefer:

        echo ’
        Package: *
        Pin: origin packages.mozilla.org
        Pin-Priority: 1000

        Package: firefox*
        Pin: release o=Ubuntu
        Pin-Priority: -1’ | sudo tee /etc/apt/preferences.d/mozilla

        • IsoKiero@sopuli.xyz
          link
          fedilink
          English
          arrow-up
          1
          ·
          51 minutes ago

          True, but more often than not mozilla should have newer packages on their repository than any distribution. And the main problem still is that Ubuntu changed apt and threw snap in to the mix where it doesn’t belong.

          • BluescreenOfDeath@lemmy.world
            link
            fedilink
            English
            arrow-up
            1
            ·
            10 minutes ago

            I’m not disagreeing with anything you’ve said?

            I’m saying that just adding Mozilla’s PPA to your sources won’t change apt’s behavior when installing Firefox unless you tell apt to prefer the package offered by the Mozilla PPA.

            As someone who uses Kubuntu as a daily driver, I’m well aware of the snap drama and have worked around it using the method I pasted above.

            Even though it’s an underhanded move by Cannonical, I’m still glad the OS is open source since it makes the workaround so trivial.

    • sourov@lemm.eeOP
      link
      fedilink
      arrow-up
      5
      arrow-down
      1
      ·
      10 hours ago

      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.

      • Routhinator@startrek.website
        link
        fedilink
        English
        arrow-up
        9
        ·
        10 hours ago

        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.

        • JuxtaposedJaguar@lemmy.ml
          link
          fedilink
          arrow-up
          2
          ·
          9 hours ago

          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.

      • JubilantJaguar@lemmy.world
        link
        fedilink
        arrow-up
        2
        arrow-down
        1
        ·
        9 hours ago

        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.

        • Morphit @feddit.uk
          link
          fedilink
          arrow-up
          3
          ·
          5 hours ago

          Canonical added an epoch prefix to the firefox version number. Because that epoch (1) is higher than the implicit default (0), the official ubuntu dummy package is always considered to be a higher version than the official Mozilla package. apt doesn’t look at snap packages, it installs the deb, but the ubuntu deb just runs snap install firefox and basically nothing else.