If you don't add the repository to the configuration, the pinning you mention is worthless since the unattended-upgrades-tool does not know about the package and also don't know about its pinning. The unattended-upgrades-tool does not know about packages from third party repositories unless you add them to the configuration file or add an extra configuration file which includes them.Įxample for firefox: echo 'Unattended-Upgrade::Allowed-Origins:: "LP-PPA-mozillateam:$" ' | sudo tee /etc/apt//51unattended-upgrades-firefox You can take a look at the configuration file /etc/apt//50unattended-upgrades. The unattended-upgrades-tool is configured by default to upgrade packages only from the distribution's repositories. So, I suppose this is fixed, but the question why unattended-upgrades replaced my ppa-firefox in spite of its higher priority (1001 > 500) remains open. Unpacking firefox (1:1snap1-0ubuntu2) over (119.0.1+build1-0ubuntu0.22.04.1~mt1)ĮDIT: I have since given priority -1 to both snap and snap-firefox, as suggested in comments and answers to the questions above. The unattended-upgrades-log admits it: $ grep 'Unpacking firefox' /var/log/unattended-upgrades/unattended-upgrades-dpkg.log Here's my current apt-cache policy after reinstalling firefox: # apt-cache policy firefox Here's my ppa-firefox app-pin: $ cat /etc/apt/preferences.d/mozilla-firefox I managed to reinstall my ppa-firefox with a simple apt-get remove firefox apt-get install firefox so I suspect the priorities are working, but unattended-upgrade somehow didn't respect them. Today, unattended-upgrades silently replaced my ppa-firefox with snap-firefox and I have trouble figuring out why. My setup has ppa-firefox at priority 1001 (as suggested here) and my snap-firefox at priority 500 (default). I'm running Ubuntu 22.04 and am using firefox from the mozillateam ppa. (this is a rewrite of the original question as suggested in the comments)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |