From f4727d3cb6b1b2132ef4bca698ae8ce5586d2c9c Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Tue, 30 Jul 2024 16:51:22 +0200 Subject: [PATCH] bullseye->bookworm: more stuff to try to prevent aptitude derping about python dependencies --- src/migrations/0027_migrate_to_bookworm.py.disabled | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/migrations/0027_migrate_to_bookworm.py.disabled b/src/migrations/0027_migrate_to_bookworm.py.disabled index b3ae7ea51..802947bb7 100644 --- a/src/migrations/0027_migrate_to_bookworm.py.disabled +++ b/src/migrations/0027_migrate_to_bookworm.py.disabled @@ -228,10 +228,11 @@ class MyMigration(Migration): full_upgrade_cmd += "yunohost yunohost-admin yunohost-portal moulinette ssowat " # This one is needed to solve aptitude derping with nginx dependencies full_upgrade_cmd += "libluajit2-5.1-2 " + # For some reason aptitude is derping about python3 / python3-venv so try to explicitly tell to install python3.11 to replace 3.9... if os.system('dpkg --list | grep -q "^ii python3.9-venv "') == 0: - full_upgrade_cmd += "python3.9- " + full_upgrade_cmd += "python3.11-venv python3.9-venv- " if os.system('dpkg --list | grep -q "^ii python3.9 "') == 0: - full_upgrade_cmd += "python3.9-venv- " + full_upgrade_cmd += "python3.11 python3.9- " try: aptitude_with_progress_bar(full_upgrade_cmd)