TL;DR: Could it be that you are - or at some point used to back up UCS with Veeam? That could be one culprit, see my digging below.
univention-bind is (or at least used to be) package that contains the glue for the integration of the BIND DNS server in UCS. So yes, it’s rather a central piece, depending on roles installed on it I wouldn’t remove it light-hearted.
However there is another error the you can see before (starting at line 27531) that I sumbled upon:
warning: rule setup/* already exists
dpkg: Abhängigkeitsprobleme verhindern Konfiguration von univention-bind:
univention-bind hängt ab von univention-role-server-common (>= 12.0.0-8) | univention-container-role-server-common; aber:
Paket univention-role-server-common ist noch nicht konfiguriert.
Paket univention-container-role-server-common ist nicht installiert.
dpkg: Fehler beim Bearbeiten des Paketes univention-bind (--configure):
Abhängigkeitsprobleme - verbleibt unkonfiguriert
These are also pretty central meta-packages for UCS if I remember correctly.
So when following that bit, on line 27601 you can see that there is an issue when configuring univention-role-server-common:
dpkg: Abhängigkeitsprobleme verhindern Konfiguration von univention-role-server-common:
univention-role-server-common hängt ab von linux-image-amd64; aber:
Paket linux-image-amd64 ist noch nicht konfiguriert.
dpkg: Fehler beim Bearbeiten des Paketes univention-role-server-common (--configure):
Abhängigkeitsprobleme - verbleibt unkonfiguriert
And when we dig further, we see at 27531 that linux-image-amd64 couldn’t be configured:
dpkg: Abhängigkeitsprobleme verhindern Konfiguration von linux-image-amd64:
linux-image-amd64 hängt ab von linux-image-6.1.0-28-amd64 (= 6.1.119-1); aber:
Paket linux-image-6.1.0-28-amd64 ist noch nicht konfiguriert.
That’s the meta package for the Linux kernel and it isually depends on an actual kernel version. So we end up at line 27329 where we can see that an issue happens with DKMS: and a module veeamsnap:
linux-image-6.1.0-28-amd64 (6.1.119-1) wird eingerichtet ...
/etc/kernel-img.conf:2: W: ignoring unknown parameter do_bootfloppy
/etc/kernel-img.conf:3: W: ignoring unknown parameter silent_loader
I: /vmlinuz.old is now a symlink to boot/vmlinuz-5.10.0-30-amd64
I: /initrd.img.old is now a symlink to boot/initrd.img-5.10.0-30-amd64
I: /vmlinuz is now a symlink to boot/vmlinuz-6.1.0-28-amd64
I: /initrd.img is now a symlink to boot/initrd.img-6.1.0-28-amd64
/etc/kernel/postinst.d/dkms:
dkms: running auto installation service for kernel 6.1.0-28-amd64.
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/veeamsnap/5.0.2.4567/source/dkms.conf)
[...]
Deprecated feature: REMAKE_INITRD (/etc/dkms/framework.conf)
Sign command: /usr/lib/linux-kbuild-6.1/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Certificate or key are missing, generating self signed certificate for MOK...
Building module:
Cleaning build area...
make -j8 KERNELRELEASE=6.1.0-28-amd64 VM_UNAME=6.1.0-28-amd64 MODULEBUILDDIR=/var/lib/dkms/open-vm-tools/10.1.5/build -C vmxnet...(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.1.0-28-amd64 (x86_64)
Consult /var/lib/dkms/open-vm-tools/10.1.5/build/make.log for more information.
Deprecated feature: REMAKE_INITRD (/etc/dkms/framework.conf)
Sign command: /usr/lib/linux-kbuild-6.1/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/veeamsnap/5.0.2.4567/source/dkms.conf)
Running the pre_build script:
Fake System.map was found in '/boot/System.map-6.1.0-28-amd64'
Generate "/var/lib/dkms/veeamsnap/5.0.2.4567/build/config.h" for kernel "6.1.0-28-amd64".
Building module:
Cleaning build area...
make -j8 KERNELRELEASE=6.1.0-28-amd64 -C /lib/modules/6.1.0-28-amd64/build M=/var/lib/dkms/veeamsnap/5.0.2.4567/build modules...(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.1.0-28-amd64 (x86_64)
Consult /var/lib/dkms/veeamsnap/5.0.2.4567/build/make.log for more information.
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
dkms: autoinstall for kernel: 6.1.0-28-amd64 failed!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
dpkg: Fehler beim Bearbeiten des Paketes linux-image-6.1.0-28-amd64 (--configure):
»installiertes post-installation-Skript des Paketes linux-image-6.1.0-28-amd64«-Unterprozess gab den Fehlerwert 1 zurück
So my current guess would be that you are using Veeam as backup solution (or used to at some point) and have installed the veeamsnap module is having issues with being rebuilt for the newer kernel.
While I’m not using Veeam, it looks like you will have to update or at least temporarily remove these components so that you can fix the configuration step of the Linux kernel 6.1.0-28.
This KB article from Veeam cam up pretty quickly, this snippet might be helpful: “Veeamsnap module is supported up to Linux kernel 5.18” (See: KB2804: Veeam Agent for Linux - veeamsnap and blksnap Extended Linux Distribution Support)
So yes, veeamsnap will not work with this newer kernel as per their documentation and you’d have to replace it by blksnap. But at this point it might just be easier to at least temporarily uninstall the Veeam agent and then attempt configuring the kernel package.
Keep in mind that there are other issues that I spotted due errors in config files of PHP and FreeRADIUS, but these error don’t seem to block the upgrade process (yet).