From 8a7b34889990c168cd72b80b7bdc5bd302c2e4e5 Mon Sep 17 00:00:00 2001 From: Eric Callahan Date: Tue, 24 Aug 2021 06:39:54 -0400 Subject: [PATCH] update_manager: fix apt-get issue with changed release info Add --allow-releaseinfo-change to the call to apt-get. This resolves an issue where the repos are chaning their "Suite" value from stable to oldstable with the release of Debian Bullseye. Signed-off-by: Eric Callahan --- moonraker/components/update_manager/update_manager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/moonraker/components/update_manager/update_manager.py b/moonraker/components/update_manager/update_manager.py index fda50a9..64a8644 100644 --- a/moonraker/components/update_manager/update_manager.py +++ b/moonraker/components/update_manager/update_manager.py @@ -843,7 +843,8 @@ class PackageDeploy(BaseDeploy): if force or curtime > self.last_apt_update_time + 3600.: # Don't update if a request was done within the last hour await self.cmd_helper.run_cmd( - f"{self.APT_CMD} update", timeout=300., notify=notify) + f"{self.APT_CMD} update --allow-releaseinfo-change", + timeout=300., notify=notify) self.last_apt_update_time = time.time() async def install_packages(self,