1

I'm using a custom Firefox setup using the Mozilla Team PPA (following more or less this guide, but not using the unattended update configuration) on Kubuntu 22.04. I also use firejail to run Firefox on my system, which is one of the reasons why I want to avoid Snap.

Before installing Firefox from the PPA I also disabled and removed the Firefox Snap:

sudo snap disable firefox
sudo snap remove firefox

With the higher priority of the PPA over Snap, the apt policy usually looks like:

$ sudo apt policy firefox
firefox:
  Installed: 113.0.2+build1-0ubuntu0.22.04.1~mt1
  Candidate: 113.0.2+build1-0ubuntu0.22.04.1~mt1
  Version table:
     1:1snap1-0ubuntu2 500
        500 http://de.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
 *** 113.0.2+build1-0ubuntu0.22.04.1~mt1 1001
        500 https://ppa.launchpadcontent.net/mozillateam/ppa/ubuntu jammy/main amd64 Packages
        100 /var/lib/dpkg/status

However, when updating my system (sudo apt update && sudo apt upgrade && sudo apt full-upgrade), the Firefox Snap version is regularly installed again and overwrites the PPA Firefox, even showing this in the apt policy after the update:

firefox:
  Installed: 1:1snap1-0ubuntu2
  Candidate: 113.0.2+build1-0ubuntu0.22.04.1~mt1
  Version table:
 *** 1:1snap1-0ubuntu2 500
        500 http://de.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
        100 /var/lib/dpkg/status
     113.0.2+build1-0ubuntu0.22.04.1~mt1 1001
        500 https://ppa.launchpadcontent.net/mozillateam/ppa/ubuntu jammy/main amd64 Packages

I temporarily resolve this manually by removing and installing Firefox via apt again, which will install Firefox from the PPA again.

sudo apt remove firefox
sudo apt install firefox

I use other Snap applications on my system, so removing Snap is unfortunately not an option at the moment.

How do I prevent Snap from overwriting my Firefox PPA install?

EDIT: The post here on AskUbuntu suggests, this can be prevented by adding the PPA to the unattended update list. If at all possible I want to avoid unattended updates of Firefox, because this kills my workflow for every update. Is there any other approach?

0 Answers0