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 <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan 2021-08-24 06:39:54 -04:00
parent f1523ef5f8
commit 8a7b348899
1 changed files with 2 additions and 1 deletions

View File

@ -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,