Before installing qt6-base-private-dev you have to run
sudo apt upgrade
to update the version of systemd to a version higher than the one initially provided on the 22.04 desktop image.
Before installing qt6-base- private- dev you have to run
sudo apt upgrade
to update the version of systemd to a version higher than the one initially provided on the 22.04 desktop image.