From 600caec5598e32df19f29beb740ab6893f0c132d Mon Sep 17 00:00:00 2001 From: Piotr Henryk Dabrowski Date: Sun, 22 Sep 2024 13:49:14 +0200 Subject: [PATCH] apt: workaround bug #319/#368 in unattended-upgrades by allowing all origins https://github.com/mvo5/unattended-upgrades/issues/319 https://github.com/mvo5/unattended-upgrades/issues/368 https://bugs.launchpad.net/ubuntu/+source/unattended-upgrades/+bug/2033646 --- Makefile | 1 + __etc__apt__apt.conf.d__99phd | 6 ++++++ __etc__apt__preferences.d__phd | 4 ---- 3 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 __etc__apt__apt.conf.d__99phd diff --git a/Makefile b/Makefile index 0ddf021..25b5bca 100644 --- a/Makefile +++ b/Makefile @@ -137,6 +137,7 @@ ifneq ($(shell id -u), 0) else $(call link , ${DIR} , /etc/.phdconf ) $(call link , /etc/.phdconf/__etc__apt__preferences.d__phd , /etc/apt/preferences.d/phd ) + $(call link , /etc/.phdconf/__etc__apt__apt.conf.d__99phd , /etc/apt/apt.conf.d/99phd ) $(call create_immutable, /etc/apt/sources.list.d/phd.sources ) $(call link , /etc/.phdconf/__etc__apt__sources.list.d__phd.list--${DISTRIB_CODENAME}, /etc/apt/sources.list.d/phd.list ) $(call create_immutable, /etc/apt/sources.list.d/steam.list ) diff --git a/__etc__apt__apt.conf.d__99phd b/__etc__apt__apt.conf.d__99phd new file mode 100644 index 0000000..4a54435 --- /dev/null +++ b/__etc__apt__apt.conf.d__99phd @@ -0,0 +1,6 @@ +Unattended-Upgrade::Origins-Pattern { + "origin=*"; +}; + +// Unattended-Upgrade::OnlyOnACPower "false"; +// Unattended-Upgrade::Skip-Updates-On-Metered-Connections "false"; diff --git a/__etc__apt__preferences.d__phd b/__etc__apt__preferences.d__phd index d27840f..dcb33bd 100644 --- a/__etc__apt__preferences.d__phd +++ b/__etc__apt__preferences.d__phd @@ -10,10 +10,6 @@ Package: * Pin: release o=LP-PPA-phd-chromium-browser Pin-Priority: 1001 -Package: firefox firefox-* thunderbird thunderbird-* -Pin: release o=Ubuntu -Pin-Priority: -1 - Package: * Pin: release o=LP-PPA-phd-firefox Pin-Priority: 1001