Update: I had massive sd card corruption (still don’t know why). I reformatted the sd card and checked it repeatedly and it appears to be working well now. I had to reinstall from scratch unfortunately
Creating a bug report/issue
[ X] I have searched the existing open and closed issues
Required Information
- DietPi version | 9.12.1
- Distro version | bookworm
- Kernel version | 6.12.25+rpt-rpi-v8
- Architecture | arm64
- SBC model | RPi 4 Model B
- Power supply used | RPi Official
- SD card used | Kingston 32GB HC-I U1
Additional Information (if applicable)
- Software title | Dietpi System
- Was the software title installed freshly or updated/migrated? Updated from previous versions
- Can this issue be replicated on a fresh installation of DietPi? Don’t know
- Bug report ID | b0ef31ad-673b-4a77-8a8d-61e64fa7865a
Steps to reproduce
- …Upgrade from 9.12.1 to 9.13.2
Expected behaviour
- …Upgrade
Actual behaviour
- …Update fails
Extra details
I get the following errors:
APT upgrade
│ - Command: apt-get -y --with-new-pkgs upgrade
│ - Exit code: 100
│ - DietPi version: v9.12.1 (MichaIng/master) | HW_MODEL: 4 | HW_ARCH: 3 | DISTRO: 7
│ - Error log:
│ Reading package lists...
│ Building dependency tree...
│ Reading state information...
│ Calculating upgrade...
│ The following packages were automatically installed and are no longer required:
│ linux-image-6.12.20+rpt-rpi-2712 linux-image-6.12.20+rpt-rpi-v8
│ Use 'apt autoremove' to remove them.
│ 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
│ 5 not fully installed or removed.
│ After this operation, 0 B of additional disk space will be used.
│ Setting up initramfs-tools (0.142+rpt3+deb12u3) ...^M
│ update-initramfs: deferring update (trigger activated)^M
│ Setting up linux-image-6.12.25+rpt-rpi-2712 (1:6.12.25-1+rpt1) ...^M
│ I: /initrd.img.old is now a symlink to boot/initrd.img-6.12.25+rpt-rpi-2712^M
│ /etc/kernel/postinst.d/initramfs-tools:^M
│ Segmentation fault^M
│ ^M
│ Usage: update-initramfs {-c|-d|-u} [-k version] [-v] [-b directory]^M
│ ^M
│ Options:^M
│ -k versionSpecify kernel version or 'all'^M
│ -c Create a new initramfs^M
│ -u Update an existing initramfs^M
│ -d Remove an existing initramfs^M
│ -b directorySet alternate boot directory^M
│ -v Be verbose^M
│ ^M
│ See update-initramfs(8) for further details.^M
│ ^M
│ run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 2^M
│ dpkg: error processing package linux-image-6.12.25+rpt-rpi-2712 (--configure):^M
│ installed linux-image-6.12.25+rpt-rpi-2712 package post-installation script subprocess returned error exit status 1^M
│ dpkg: dependency problems prevent configuration of linux-image-rpi-2712:^M
│ linux-image-rpi-2712 depends on linux-image-6.12.25+rpt-rpi-2712 (= 1:6.12.25-1+rpt1); however:^M
│ Package linux-image-6.12.25+rpt-rpi-2712 is not configured yet.^M
│ ^M
│ dpkg: error processing package linux-image-rpi-2712 (--configure):^M
│ dependency problems - leaving unconfigured^M
│ Setting up linux-image-6.12.25+rpt-rpi-v8 (1:6.12.25-1+rpt1) ...^M
│ I: /initrd.img is now a symlink to boot/initrd.img-6.12.25+rpt-rpi-v8^M
│ /etc/kernel/postinst.d/initramfs-tools:^M
│ Segmentation fault^M
│ ^M
│ Usage: update-initramfs {-c|-d|-u} [-k version] [-v] [-b directory]^M
│ ^M
│ Options:^M
│ -k versionSpecify kernel version or 'all'^M
│ -c Create a new initramfs^M
│ -u Update an existing initramfs^M
│ -d Remove an existing initramfs^M
│ -b directorySet alternate boot directory^M
│ -v Be verbose^M
│ ^M
│ See update-initramfs(8) for further details.^M
│ ^M
│ run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 2^M
│ dpkg: error processing package linux-image-6.12.25+rpt-rpi-v8 (--configure):^M
│ installed linux-image-6.12.25+rpt-rpi-v8 package post-installation script subprocess returned error exit status 1^M
│ dpkg: dependency problems prevent configuration of linux-image-rpi-v8:^M
│ linux-image-rpi-v8 depends on linux-image-6.12.25+rpt-rpi-v8 (= 1:6.12.25-1+rpt1); however:^M
│ Package linux-image-6.12.25+rpt-rpi-v8 is not configured yet.^M
│ ^M
│ dpkg: error processing package linux-image-rpi-v8 (--configure):^M
│ dependency problems - leaving unconfigured^M
│ Processing triggers for initramfs-tools (0.142+rpt3+deb12u3) ...^M
│ Segmentation fault^M