Neon Testing upgrade 24.04 failed - dependency problems [SOLVED]

I have KDE Neon Testing.
Before upgrading to 24.04, it requires you to first install any updates in Discover.
Installing updates failed, the repair button also failed: and no indication on the GUI why it failed.

Updating via command line also did not help:
pkcon refresh
pkcon -v update
Fatal error: Error while installing package: dependency problems - leaving unconfigured

Googling around, one of the commands I tried was:

sudo dpkg --configure -a
dpkg: dependency problems prevent configuration of plasma5support:
 plasma-workspace (4:6.2.0+p22.04+vstable+git20240926.0126-0) breaks plasma5support (<< 4:6.1.0) and is installed.
  Version of plasma5support to be configured is 6.2.0+p22.04+vstable+git20241008.1022-0.

I then did, again after trying various things:

sudo apt remove plasma5support
apt download plasma-workspace
sudo dpkg --ignore-depends=plasma5support -i plasma-workspace_4%3a6.2.0+p22.04+vstable+git20241010.0021-0_amd
64.deb

Then I was able to start the upgrade to 24.04 which failed:
Failed to download upgrades
Upgrade failed with the following output:
localuser:root being added to access control list
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
Error in function pulse
Traceback (most recent call last):
and a lot more but nothing which explained why it failed (but I think it failed because it could not download the upgrades).

I tried a second time to upgrade to 24.04
which then succeeded.
Phew.
But this doesn’t help other people here who have other dependency issues.

In synaptic I see that plasma-workspace depends on plasma5support (>=6.2.0+p24.04 etc)
and that it breaks plasma5support (<6.2.0).
and I see that plasma5support is installed (the latest version).
I hope the devs can figure out why installing updates failed and that they can fix it.