Setting up apfs-dkms (0.3.0-1) ...
Removing old linux-apfs-rw-0.3.0-1 DKMS files...
/usr/sbin/dkms: line 2497: echo: write error: Broken pipe
Deleting module linux-apfs-rw-0.3.0-1 completely from the DKMS tree.
Loading new linux-apfs-rw-0.3.0-1 DKMS files...
/usr/sbin/dkms: line 2497: echo: write error: Broken pipe
Building for 6.11.5+bpo-amd64
/usr/sbin/dkms: line 2497: echo: write error: Broken pipe
Building initial module for 6.11.5+bpo-amd64
/usr/sbin/dkms: line 2497: echo: write error: Broken pipe
Error! Bad return status for module build on kernel: 6.11.5+bpo-amd64 (x86_64)
Consult /var/lib/dkms/linux-apfs-rw/0.3.0-1/build/make.log for more information.
dpkg: error processing package apfs-dkms (--configure):
installed apfs-dkms package post-installation script subprocess returned error exit status 10
Errors were encountered while processing:
apfs-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)
Don't worry, you don't need this module, just remove it and it will be fixed, open a terminal and run:
apr --purge apfs-dkms