This post is basically for general information.
Unfortunately I got hit by this same (type of) error in an upgrade yesterday. Over 200 packages were pushed for Kubuntu 22.04. It basically bricked my system GUI - but I could use grub and get to a console and save the data. Here are the two...