From ac6d68711c1d9a13184a2ae46cfe766dcf7d4257 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Wed, 16 Nov 2022 16:59:26 +0100 Subject: [PATCH] tools_update: add --allow-releaseinfo-change option to apt update to prevent the classic nightmare when debian changes from stable to oldstable --- src/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools.py b/src/tools.py index ba58b5bff..10da51304 100644 --- a/src/tools.py +++ b/src/tools.py @@ -311,7 +311,7 @@ def tools_update(target=None): # Update APT cache # LC_ALL=C is here to make sure the results are in english - command = "LC_ALL=C apt-get update -o Acquire::Retries=3" + command = "LC_ALL=C apt-get update -o Acquire::Retries=3 --allow-releaseinfo-change" # Filter boring message about "apt not having a stable CLI interface" # Also keep track of wether or not we encountered a warning...