What type of hardware are you using: Virtual machine What YunoHost version are you running: 11.3.0.2 How are you able to access your server: Direct access via physical keyboard/screen
Describe your issue
I’m trying to update to version 12. Currently migration is failing with
2025-03-23 16:26:48,708: ERROR - Migration 0027_migrate_to_bookworm did not complete, aborting. Error: Failed to run command 'aptitude full-upgrade --show-why -o Dpkg::Options::='--force-confold''
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/yunohost/tools.py", line 786, in tools_migrations_run
migration.run()
File "/usr/lib/python3/dist-packages/yunohost/migrations/0027_migrate_to_bookworm.py", line 218, in run
aptitude_with_progress_bar(
File "/usr/lib/python3/dist-packages/yunohost/utils/system.py", line 315, in aptitude_with_progress_bar
raise YunohostError(
yunohost.utils.error.YunohostError: Failed to run command 'aptitude full-upgrade --show-why -o Dpkg::Options::='--force-confold''
“Classic” story about grub-pc being a pain because for some reason the disk changed or something … :
2025-03-23 16:26:45,865: WARNING - E: Sub-process /usr/bin/dpkg returned an error code (1)
2025-03-23 16:26:45,879: DEBUG - Setting up grub-pc (2.06-13+deb12u1) ...
2025-03-23 16:26:46,637: WARNING - grub-pc: Running grub-install ...
2025-03-23 16:26:46,639: WARNING - You must correct your GRUB install devices before proceeding:
2025-03-23 16:26:46,639: WARNING -
2025-03-23 16:26:46,640: WARNING - DEBIAN_FRONTEND=dialog dpkg --configure grub-pc
2025-03-23 16:26:46,640: WARNING - dpkg --configure -a
2025-03-23 16:26:46,685: WARNING - dpkg: error processing package grub-pc (--configure):
2025-03-23 16:26:46,686: WARNING - installed grub-pc package post-installation script subprocess returned error exit status 1
2025-03-23 16:26:46,695: WARNING - Errors were encountered while processing:
2025-03-23 16:26:46,696: WARNING - grub-pc
You need to run the recommended commands, in particular the first one : DEBIAN_FRONTEND=dialog dpkg --configure grub-pc where it’ll ask you on which disk/partition you want grub installed, which is always a bit confusing and I have no clear advice about what’s the correct way to answer it