From d2f95ab2ad8811a59d58b87a40fcab3b35ec9a2f Mon Sep 17 00:00:00 2001 From: Patrik Dufresne Date: Mon, 6 Apr 2026 08:33:14 -0400 Subject: [PATCH] Allow downgrades in apt-get simulation If any package should be downgraded, apt return a single error without listing package to be upgraded. e.g.: ``` E: Packages were downgraded and -y was used without --allow-downgrades. ``` --- agents/plugins/mk_apt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agents/plugins/mk_apt b/agents/plugins/mk_apt index 460f764ab0c..620e0e16c52 100755 --- a/agents/plugins/mk_apt +++ b/agents/plugins/mk_apt @@ -30,7 +30,7 @@ check_apt_update() { # 1397BC53640DB551 apt-get update -qq 2>/dev/null fi - apt-get -o 'Debug::NoLocking=true' -o 'APT::Get::Show-User-Simulation-Note=false' -s -qq "$UPGRADE" | grep -v '^Conf' + apt-get --allow-downgrades -o 'Debug::NoLocking=true' -o 'APT::Get::Show-User-Simulation-Note=false' -s -qq "$UPGRADE" | grep -v '^Conf' } if type apt-get >/dev/null; then