[qubes-users] Standalone Debian 11 -> 12 Upgrade Question

Hello!

I'm trying to upgrade a standalone Debian 11 qube from Qubes OS 4.1
to Debian 12 on Qubes OS 4.2.

I started by making a backup from the standalone on Qubes OS 4.1.

Then I restored it on a fresh Qubes OS 4.2 installation.

Inside that restored standalone I run the upgrade script:

which worked fine, but upgrading Debian 11 -> 12 failed - see below.

The documentation does not yet contain steps for Debian 11 -> 12 yet:

Are there Debian 12 specific issues to consider during the upgrade?
Any idea on how to work around the issue shown below?

thanks!

sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list
sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list.d/qubes-r4.list
apt update
apt upgrade --no-install-recommends
...
Setting up polkitd (122-3) ...
Failed to check if group polkitd already exists: Connection refused
id: ‘polkitd’: no such user
chown: invalid user: ‘polkitd:root’
dpkg: error processing package polkitd (--configure):
  installed polkitd package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of pkexec:
  pkexec depends on polkitd (= 122-3); however:
   Package polkitd is not configured yet.

dpkg: error processing package pkexec (--configure):
  dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of packagekit:
  packagekit depends on polkitd; however:
   Package polkitd is not configured yet.

dpkg: error processing package packagekit (--configure):
  dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of policykit-1:
  policykit-1 depends on pkexec (= 122-3); however:
   Package pkexec is not configured yet.
  policykit-1 depends on polkitd (= 122-3); however:
   Package polkitd is not configured yet.

dpkg: error processing package policykit-1 (--configure):
  dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of policykit-1-gnome:
  policykit-1-gnome depends on polkitd | policykit-1; however:
   Package polkitd is not configured yet.
   Package policykit-1 is not configured yet.

dpkg: error processing package policykit-1-gnome (--configure):
  dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of packagekit-tools:
  packagekit-tools depends on packagekit (= 1.2.6-5); however:
   Package packagekit is not configured yet.

dpkg: error processing package packagekit-tools (--configure):
  dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of rtkit:
  rtkit depends on polkitd | policykit-1; however:
   Package polkitd is not configured yet.
   Package policykit-1 is not configured yet.

dpkg: error processing package rtkit (--configure):
  dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of network-manager-gnome:
  network-manager-gnome depends on policykit-1-gnome | polkit-1-auth-agent; however:
   Package policykit-1-gnome is not configured yet.
   Package polkit-1-auth-agent is not installed.
   Package policykit-1-gnome which provides polkit-1-auth-agent is not configured yet.

dpkg: error processing package network-manager-gnome (--configure):
  dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of colord:
  colord depends on polkitd | policykit-1 (>= 0.103); however:
   Package polkitd is not configured yet.
   Package policykit-1 is not configured yet.

dpkg: error processing package colord (--configure):
  dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of modemmanager:
  modemmanager depends on polkitd | policykit-1; however:
   Package polkitd is not configured yet.
   Package policykit-1 is not configured yet.

dpkg: error processing package modemmanager (--configure):
  dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of qubes-core-agent-network-manager:
  qubes-core-agent-network-manager depends on network-manager-gnome; however:
   Package network-manager-gnome is not configured yet.
  qubes-core-agent-network-manager depends on policykit-1; however:
   Package policykit-1 is not configured yet.

dpkg: error processing package qubes-core-agent-network-manager (--configure):
  dependency problems - leaving unconfigured
Errors were encountered while processing:
  polkitd
  pkexec
  packagekit
  policykit-1
  policykit-1-gnome
  packagekit-tools
  rtkit
  network-manager-gnome
  colord
  modemmanager
  qubes-core-agent-network-manager
E: Sub-process /usr/bin/dpkg returned an error code (1)