The upgrade from Debian 12 with KDE to Debian 13 didn't complete successfully. It seems to be due to disk space problems that the upgrade process still doesn't make sure to avoid or manage.
However, now I should have enough disk space on the partitions after running sudo apt-get autoremove and also rebooting (the shutdown button didn't work and neither did sudo shutdown so I long pressed the power button on the machine). It could be that there is too little disk space on /boot but as you can see the upgrade output claims there is enough disk space available now.
I checked what's in /boot with ls -l /boot and it's not much and I don't know how to free up its disk space, especially as I'd like to avoid having to manually removing kernel files. There don't seem to be kernel files I could remove so maybe the disk space issue is on another partition or it's not a disk space problem to begin with. Earlier, I had the upgrade process of sudo apt-get full-upgrade break in between because of too little disk space after which I ran sudo apt-get autoremove to manually free up disk space to then finish it for the most part (except for those 3 packages).
I think the Debian upgrade is still not beginner-friendly and doesn't manage the common issue of limited disk space.
Now when it comes to fixing this problem in my case and for people who have the same or a very similar problem: when I run sudo apt --fix-broken install to fix it, this is the output:
Summary: Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0 3 not fully installed or removed. Space needed: 0 B / 1,234 MB available Setting up initramfs-tools (0.148.3) ... update-initramfs: deferring update (trigger activated) Setting up plymouth (24.004.60-5) ... update-initramfs: Generating /boot/initrd.img-6.12.48+deb13-amd64 zstd: error 70 : Write error : cannot write block : No space left on device E: mkinitramfs failure zstd -q -9 -T0 70 update-initramfs: failed for /boot/initrd.img-6.12.48+deb13-amd64 with 1. dpkg: error processing package plymouth (--configure): installed plymouth package post-installation script subprocess returned error exit status 1 dpkg: dependency problems prevent configuration of plymouth-label: plymouth-label depends on plymouth (= 24.004.60-5); however: Package plymouth is not configured yet. dpkg: error processing package plymouth-label (--configure): dependency problems - leaving unconfigured Processing triggers for initramfs-tools (0.148.3) ... ] update-initramfs: Generating /boot/initrd.img-6.12.48+deb13-amd64 ] zstd: error 70 : Write error : cannot write block : No space left on device ] E: mkinitramfs failure zstd -q -9 -T0 70███████▎ ] update-initramfs: failed for /boot/initrd.img-6.12.48+deb13-amd64 with 1. ] dpkg: error processing package initramfs-tools (--configure): ] installed initramfs-tools package post-installation script subprocess returned error exit status 1 ] Errors were encountered while processing: plymouth plymouth-label initramfs-tools How to complete the Debian upgrade?