[Bug 1999308] Re: Snap keeps uninstalling apt Firefox, and reinstalling snap Firefox
herrsaalfeld
1999308 at bugs.launchpad.net
Tue May 2 15:02:26 UTC 2023
I am having the same problem, but I prevented snap from updating firefox with
```
snap refresh --hold firefox
```
Since Ubuntu's transitional deb package does not understand my snap preferences, it now simply *uninstalls* the firefox deb package, and I have to manually update it with
```
sudo apt install firefox
```
after Ubuntu's software updater, kind of silly, and the opposite of user friendly. However, @vanadium offered a solution at
https://askubuntu.com/questions/1407913/how-to-stop-an-individual-snap-
from-updating-ubuntu-22-04-lts
that disables Ubuntu's transitional deb package. For me, the combination of setting the priority of the Mozilla PPA and disabling Ubuntu's transitional firefox package looks like this
```
cat <<EOF | sudo tee /etc/apt/preferences.d/mozilla-firefox
Package: *
Pin: release o=LP-PPA-mozillateam
Pin-Priority: 1001
Package: firefox*
Pin: release o=Ubuntu*
Pin-Priority: -1
EOF
```
Now, `apt policy firefox` says
```
firefox:
Installed: 113.0+build1-0ubuntu0.23.04.1~mt1
Candidate: 113.0+build1-0ubuntu0.23.04.1~mt1
Version table:
1:1snap1-0ubuntu3 -1
500 http://archive.ubuntu.com/ubuntu lunar/main amd64 Packages
*** 113.0+build1-0ubuntu0.23.04.1~mt1 1001
1001 https://ppa.launchpadcontent.net/mozillateam/ppa/ubuntu lunar/main amd64 Packages
100 /var/lib/dpkg/status
```
and I hope the -1 behind Ubuntu's package will forever block this from happening again.
--
You received this bug notification because you are a member of Mozilla
Bugs, which is subscribed to firefox in Ubuntu.
https://bugs.launchpad.net/bugs/1999308
Title:
Snap keeps uninstalling apt Firefox, and reinstalling snap Firefox
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1999308/+subscriptions
More information about the Ubuntu-mozillateam-bugs
mailing list