upgrades: Skip unattended-upgrade in dist-upgrade

Skip running unattended-upgrade due to it getting stuck in endless
loop. See #2266.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
James Valleroy 2022-10-09 10:13:44 -04:00 committed by Sunil Mohan Adapa
parent c4b17130d4
commit c16d1e51d6
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -493,9 +493,10 @@ def _perform_dist_upgrade():
f'{DIST_UPGRADE_PRE_DEBCONF_SELECTIONS}', flush=True)
debconf_set_selections(DIST_UPGRADE_PRE_DEBCONF_SELECTIONS)
# XXX: unattended-upgrade gets stuck here, see #2266.
# This will upgrade most of the packages.
print('Running unattended-upgrade...', flush=True)
subprocess.run(['unattended-upgrade', '--verbose'], check=False)
#print('Running unattended-upgrade...', flush=True)
#subprocess.run(['unattended-upgrade', '--verbose'], check=False)
# Remove obsolete packages that may prevent other packages from
# upgrading.