I just had a completely frozen system while running an apt upgrade
, leaving it in a somewhat broken state. I already ran apt --fix-broken install
but stil when I now try to run an apt upgrade
, this happens:
$ sudo apt upgrade
Summary:
Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0
1 not fully installed or removed.
Space needed: 0 B / 886 GB available
Continue? [Y/n] y
Setting up flash-kernel (3.109+reform20250506T203207Z1) ...
Using DTB: freescale/imx8mp-mnt-pocket-reform.dtb
flash-kernel: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.147) ...
update-initramfs: Generating /boot/initrd.img-6.14.5-mnt-reform-arm64
Using DTB: freescale/imx8mp-mnt-pocket-reform.dtb
Installing /usr/lib/linux-image-6.14.5-mnt-reform-arm64/freescale/imx8mp-mnt-pocket-reform.dtb into /boot/dtbs/6.14.5-mnt-reform-arm64/freescale/imx8mp-mnt-pocket-reform.dtb
Taking backup of imx8mp-mnt-pocket-reform.dtb.
Installing new imx8mp-mnt-pocket-reform.dtb.
Ignoring old or unknown version 6.14.5-mnt-reform-arm64 (latest is 6.14.5-mnt-reform-arm64.dpkg-tmp)
Processing triggers for flash-kernel (3.109+reform20250506T203207Z1) ...
Using DTB: freescale/imx8mp-mnt-pocket-reform.dtb
Couldn't find DTB imx8mp-mnt-pocket-reform.dtb in /usr/lib/linux-image-6.14.5-mnt-reform-arm64.dpkg-tmp or /etc/flash-kernel/dtbs
Installing into /boot/dtbs/6.14.5-mnt-reform-arm64.dpkg-tmp/freescale/imx8mp-mnt-pocket-reform.dtb
cp: cannot stat '': No such file or directory
dpkg: error processing package flash-kernel (--configure):
installed flash-kernel package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
flash-kernel
Error: Sub-process /usr/bin/dpkg returned an error code (1)
Any advice on how to proceed?