From f3ccc416f047fdee058006bbd2977f7928f00721 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Sat, 10 Aug 2019 20:02:45 -0700 Subject: [PATCH] upgrades: Set apt configuration to allow release info change Helps #1601. When release information such as 'Version' and 'Suite' change for a distribution changes, apt requires an explicit confirmation from the user. apt-get(8) specifies the reason for this prompt as ensuring that the user is prepared for the change. On a FreedomBox installation, as the system administration agent of the user, FreedomBox has to make this decision on whether the user is ready for the change. FreedomBox works to keep the system up-to-date and manages configuration changes for packages, data migration etc. Hence, accept all release information changes without a prompt. Without this, when a stable release is made, if the user was using that code-name before the release, then the system stop receiving updates and no new apps can be installed in FreedomBox. This happened in case of Buster release although Debian itself had some part in this. See: https://salsa.debian.org/freedombox-team/plinth/issues/1601 Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- .../20freedombox-allow-release-info-change | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 plinth/modules/upgrades/data/etc/apt/apt.conf.d/20freedombox-allow-release-info-change diff --git a/plinth/modules/upgrades/data/etc/apt/apt.conf.d/20freedombox-allow-release-info-change b/plinth/modules/upgrades/data/etc/apt/apt.conf.d/20freedombox-allow-release-info-change new file mode 100644 index 000000000..5bc166dfc --- /dev/null +++ b/plinth/modules/upgrades/data/etc/apt/apt.conf.d/20freedombox-allow-release-info-change @@ -0,0 +1,15 @@ +// When release information such as 'Version' and 'Suite' change for a +// distribution changes, apt requires an explicit confirmation from the user. +// apt-get(8) specifies the reason for this prompt as ensuring that the user is +// prepared for the change. On a FreedomBox installation, as the system +// administration agent of the user, FreedomBox has to make this decision on +// whether the user is ready for the change. FreedomBox works to keep the system +// up-to-date and manages configuration changes for packages, data migration +// etc. Hence, accept all release information changes without a prompt. +// +// Without this, when a stable release is made, if the user was using that +// code-name before the release, then the system stop receiving updates and no +// new apps can be installed in FreedomBox. This happened in case of Buster +// release although Debian itself had some part in this. See: +// https://salsa.debian.org/freedombox-team/plinth/issues/1601 +Acquire::AllowReleaseInfoChange "true";