20250630 sudo apt update/full-upgrade with dpkg error

Hello,

As usual routine I was running update/full-upgrade and the process looked smooth initially, but at its end I have got the error as shown below:

shigeru@mntpr-0:~$ sudo apt update
Hit:1 https://deb.torproject.org/torproject.org trixie InRelease             
Get:2 http://deb.debian.org/debian unstable InRelease [208 kB]                 
Ign:3 https://mntre.com/reform-debian-repo reform InRelease                    
Get:4 https://mntre.com/reform-debian-repo reform Release [7,860 B]
Get:5 http://deb.debian.org/debian unstable/main arm64 Packages.diff/Index [63.6 kB]
Ign:6 https://mntre.com/reform-debian-repo reform Release.gpg
Get:7 http://deb.debian.org/debian unstable/main all Contents (deb).diff/Index [63.8 kB]
Get:8 https://mntre.com/reform-debian-repo reform/main arm64 Packages [9,351 B]
Get:9 http://deb.debian.org/debian unstable/main arm64 Packages T-2025-06-30-0804.30-F-2025-06-29-1407.59.pdiff [11.1 kB]
Get:9 http://deb.debian.org/debian unstable/main arm64 Packages T-2025-06-30-0804.30-F-2025-06-29-1407.59.pdiff [11.1 kB]
Get:10 https://mntre.com/reform-debian-repo reform/main arm64 Contents (deb) [156 kB]
Get:11 http://deb.debian.org/debian unstable/main all Contents (deb) T-2025-06-30-0804.30-F-2025-06-29-2004.37.pdiff [451 B]
Get:11 http://deb.debian.org/debian unstable/main all Contents (deb) T-2025-06-30-0804.30-F-2025-06-29-2004.37.pdiff [451 B]
Fetched 520 kB in 35s (15.1 kB/s)                                              
52 packages can be upgraded. Run 'apt list --upgradable' to see them.
Warning: https://deb.torproject.org/torproject.org/dists/trixie/InRelease: Policy will reject signature within a year, see --audit for details
Notice: Missing Signed-By in the sources.list(5) entry for 'http://deb.debian.org/debian'
Notice: Missing Signed-By in the sources.list(5) entry for 'https://mntre.com/reform-debian-repo'
shigeru@mntpr-0:~$ sudo apt full-upgrade
The following package was automatically installed and is no longer required:
  reform-qcacld2-6.15.3-mnt-reform-arm64
Use 'sudo apt autoremove' to remove it.

Upgrading:
  initramfs-tools         libqt6dbus6
  initramfs-tools-bin     libqt6gui6
  initramfs-tools-core    libqt6network6
  libkf6iconthemes-bin    libqt6opengl6
  libkf6iconthemes-data   libqt6openglwidgets6
  libkf6iconthemes6       libqt6printsupport6
  libkf6iconwidgets6      libqt6sql6
  libpam-modules          libqt6sql6-sqlite
  libpam-modules-bin      libqt6test6
  libpam-runtime          libqt6widgets6
  libpam0g                libqt6xml6
  libqt5concurrent5t64    linux-headers-mnt-reform-arm64
  libqt5core5t64          linux-image-mnt-reform-arm64
  libqt5dbus5t64          linux-libc-dev
  libqt5gui5t64           qmake6
  libqt5network5t64       qmake6-bin
  libqt5opengl5-dev       qt5-qmake
  libqt5opengl5t64        qt5-qmake-bin
  libqt5printsupport5t64  qt6-base-dev
  libqt5sql5-sqlite       qt6-base-dev-tools
  libqt5sql5t64           qt6-gtk-platformtheme
  libqt5test5t64          qt6-qpa-plugins
  libqt5widgets5t64       qtbase5-dev
  libqt5xml5t64           qtbase5-dev-tools
  libqt6concurrent6       reform-desktop-full
  libqt6core6t64          reform-qcacld2

Installing dependencies:
  linux-headers-6.15.4-common
  linux-headers-6.15.4-mnt-reform-arm64
  linux-image-6.15.4-mnt-reform-arm64
  linux-kbuild-6.15.4
  reform-qcacld2-6.15.4-mnt-reform-arm64
  rtkit

Suggested packages:
  linux-doc-6.15

Summary:
  Upgrading: 52, Installing: 6, Removing: 0, Not Upgrading: 0
  Download size: 120 MB
  Space needed: 242 MB / 759 GB available
  └─ in /boot:  116 MB / 140 MB available

Continue? [Y/n] 
Get:1 http://deb.debian.org/debian unstable/main arm64 libpam-runtime all 1.7.0-5 [249 kB]
Get:2 http://deb.debian.org/debian unstable/main arm64 libpam0g arm64 1.7.0-5 [68.8 kB]
Get:3 http://deb.debian.org/debian unstable/main arm64 libpam-modules-bin arm64 1.7.0-5 [48.3 kB]
Get:4 http://deb.debian.org/debian unstable/main arm64 libpam-modules arm64 1.7.0-5 [172 kB]
Get:5 http://deb.debian.org/debian unstable/main arm64 initramfs-tools-bin arm64 0.148.3 [17.2 kB]
Get:6 http://deb.debian.org/debian unstable/main arm64 initramfs-tools all 0.148.3 [17.3 kB]
Get:7 http://deb.debian.org/debian unstable/main arm64 initramfs-tools-core all 0.148.3 [50.5 kB]
Get:8 http://deb.debian.org/debian unstable/main arm64 qt6-base-dev arm64 6.8.2+dfsg-8 [1,952 kB]
Get:9 https://mntre.com/reform-debian-repo reform/main arm64 linux-image-6.15.4-mnt-reform-arm64 arm64 6.15.4-1~exp1+reform20250628T170930Z [76.8 MB]
Get:10 http://deb.debian.org/debian unstable/main arm64 qmake6 arm64 6.8.2+dfsg-8 [150 kB]
Get:11 http://deb.debian.org/debian unstable/main arm64 qmake6-bin arm64 6.8.2+dfsg-8 [565 kB]
Get:12 http://deb.debian.org/debian unstable/main arm64 libqt6concurrent6 arm64 6.8.2+dfsg-8 [41.0 kB]
Get:13 http://deb.debian.org/debian unstable/main arm64 libqt6dbus6 arm64 6.8.2+dfsg-8 [247 kB]
Get:14 http://deb.debian.org/debian unstable/main arm64 libqt6network6 arm64 6.8.2+dfsg-8 [749 kB]
Get:15 http://deb.debian.org/debian unstable/main arm64 libqt6gui6 arm64 6.8.2+dfsg-8 [2,854 kB]
Get:16 http://deb.debian.org/debian unstable/main arm64 qt6-qpa-plugins arm64 6.8.2+dfsg-8 [89.4 kB]
Get:17 http://deb.debian.org/debian unstable/main arm64 libqt6opengl6 arm64 6.8.2+dfsg-8 [386 kB]
Get:18 http://deb.debian.org/debian unstable/main arm64 libqt6widgets6 arm64 6.8.2+dfsg-8 [2,475 kB]
Get:19 http://deb.debian.org/debian unstable/main arm64 libqt6openglwidgets6 arm64 6.8.2+dfsg-8 [49.4 kB]
Get:20 http://deb.debian.org/debian unstable/main arm64 libqt6printsupport6 arm64 6.8.2+dfsg-8 [209 kB]
Get:21 http://deb.debian.org/debian unstable/main arm64 libqt6sql6 arm64 6.8.2+dfsg-8 [136 kB]
Get:22 http://deb.debian.org/debian unstable/main arm64 libqt6test6 arm64 6.8.2+dfsg-8 [172 kB]
Get:23 http://deb.debian.org/debian unstable/main arm64 libqt6xml6 arm64 6.8.2+dfsg-8 [83.8 kB]
Get:24 http://deb.debian.org/debian unstable/main arm64 qt6-base-dev-tools arm64 6.8.2+dfsg-8 [962 kB]
Get:25 http://deb.debian.org/debian unstable/main arm64 libqt6core6t64 arm64 6.8.2+dfsg-8 [1,679 kB]
Get:26 http://deb.debian.org/debian unstable/main arm64 libkf6iconwidgets6 arm64 6.13.0-2 [34.2 kB]
Get:27 http://deb.debian.org/debian unstable/main arm64 libkf6iconthemes6 arm64 6.13.0-2 [81.2 kB]
Get:28 http://deb.debian.org/debian unstable/main arm64 libkf6iconthemes-data all 6.13.0-2 [31.4 kB]
Get:29 http://deb.debian.org/debian unstable/main arm64 libkf6iconthemes-bin arm64 6.13.0-2 [13.8 kB]
Get:30 http://deb.debian.org/debian unstable/main arm64 libqt5opengl5-dev arm64 5.15.15+dfsg-6 [51.8 kB]
Get:31 http://deb.debian.org/debian unstable/main arm64 qtbase5-dev arm64 5.15.15+dfsg-6 [1,121 kB]
Get:32 http://deb.debian.org/debian unstable/main arm64 libqt5core5t64 arm64 5.15.15+dfsg-6 [1,739 kB]
Get:33 http://deb.debian.org/debian unstable/main arm64 libqt5dbus5t64 arm64 5.15.15+dfsg-6 [205 kB]
Get:34 http://deb.debian.org/debian unstable/main arm64 libqt5network5t64 arm64 5.15.15+dfsg-6 [651 kB]
Get:35 http://deb.debian.org/debian unstable/main arm64 libqt5gui5t64 arm64 5.15.15+dfsg-6 [3,199 kB]
Get:36 http://deb.debian.org/debian unstable/main arm64 libqt5widgets5t64 arm64 5.15.15+dfsg-6 [2,284 kB]
Get:37 http://deb.debian.org/debian unstable/main arm64 libqt5opengl5t64 arm64 5.15.15+dfsg-6 [145 kB]
Get:38 http://deb.debian.org/debian unstable/main arm64 libqt5printsupport5t64 arm64 5.15.15+dfsg-6 [199 kB]
Get:39 http://deb.debian.org/debian unstable/main arm64 libqt5sql5t64 arm64 5.15.15+dfsg-6 [121 kB]
Get:40 http://deb.debian.org/debian unstable/main arm64 libqt5test5t64 arm64 5.15.15+dfsg-6 [139 kB]
Get:41 http://deb.debian.org/debian unstable/main arm64 libqt5xml5t64 arm64 5.15.15+dfsg-6 [122 kB]
Get:42 http://deb.debian.org/debian unstable/main arm64 qt5-qmake arm64 5.15.15+dfsg-6 [224 kB]
Get:43 http://deb.debian.org/debian unstable/main arm64 qt5-qmake-bin arm64 5.15.15+dfsg-6 [923 kB]
Get:44 http://deb.debian.org/debian unstable/main arm64 qtbase5-dev-tools arm64 5.15.15+dfsg-6 [721 kB]
Get:45 http://deb.debian.org/debian unstable/main arm64 libqt5concurrent5t64 arm64 5.15.15+dfsg-6 [45.1 kB]
Get:46 http://deb.debian.org/debian unstable/main arm64 libqt5sql5-sqlite arm64 5.15.15+dfsg-6 [58.6 kB]
Get:47 http://deb.debian.org/debian unstable/main arm64 libqt6sql6-sqlite arm64 6.8.2+dfsg-8 [64.3 kB]
Get:48 http://deb.debian.org/debian unstable/main arm64 qt6-gtk-platformtheme arm64 6.8.2+dfsg-8 [106 kB]
Get:49 http://deb.debian.org/debian unstable/main arm64 rtkit arm64 0.13-5.1+b1 [32.2 kB]
Get:50 https://mntre.com/reform-debian-repo reform/main arm64 linux-headers-6.15.4-common all 6.15.4-1~exp1+reform20250628T170930Z [10.9 MB]
Get:51 https://mntre.com/reform-debian-repo reform/main arm64 linux-kbuild-6.15.4 arm64 6.15.4-1~exp1+reform20250628T170930Z [1,329 kB]
Get:52 https://mntre.com/reform-debian-repo reform/main arm64 linux-headers-6.15.4-mnt-reform-arm64 arm64 6.15.4-1~exp1+reform20250628T170930Z [1,541 kB]
Get:53 https://mntre.com/reform-debian-repo reform/main arm64 linux-headers-mnt-reform-arm64 arm64 6.15.4-1~exp1+reform20250628T170930Z [1,172 B]
Get:54 https://mntre.com/reform-debian-repo reform/main arm64 linux-image-mnt-reform-arm64 arm64 6.15.4-1~exp1+reform20250628T170930Z [1,468 B]
Get:55 https://mntre.com/reform-debian-repo reform/main arm64 linux-libc-dev all 6.15.4-1~exp1+reform20250628T170930Z [2,496 kB]
Get:56 https://mntre.com/reform-debian-repo reform/main arm64 reform-desktop-full all 1.74-1+reform20250622T103710Z+1 [20.8 kB]
Get:57 https://mntre.com/reform-debian-repo reform/main arm64 reform-qcacld2-6.15.4-mnt-reform-arm64 arm64 20250629T123747Z [1,227 kB]
Get:58 https://mntre.com/reform-debian-repo reform/main arm64 reform-qcacld2 arm64 20250629T123747Z [414 kB]
Fetched 120 MB in 28s (4,327 kB/s)                                             
Retrieving bug reports... Done
Parsing Found/Fixed information... Done
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 513139 files and directories currently installed.)
Preparing to unpack .../libpam-runtime_1.7.0-5_all.deb ...
Unpacking libpam-runtime (1.7.0-5) over (1.7.0-3) ...
Setting up libpam-runtime (1.7.0-5) ...
(Reading database ... 513139 files and directories currently installed.)
Preparing to unpack .../libpam0g_1.7.0-5_arm64.deb ...
Unpacking libpam0g:arm64 (1.7.0-5) over (1.7.0-3) ...
Setting up libpam0g:arm64 (1.7.0-5) ...
(Reading database ... 513139 files and directories currently installed.)
Preparing to unpack .../libpam-modules-bin_1.7.0-5_arm64.deb ...
Unpacking libpam-modules-bin (1.7.0-5) over (1.7.0-3) ...
Setting up libpam-modules-bin (1.7.0-5) ...
pam_namespace.service is a disabled or a static unit not running, not starting it.
(Reading database ... 513139 files and directories currently installed.)
Preparing to unpack .../libpam-modules_1.7.0-5_arm64.deb ...
Unpacking libpam-modules:arm64 (1.7.0-5) over (1.7.0-3) ...
Setting up libpam-modules:arm64 (1.7.0-5) ...
Installing new version of config file /etc/security/namespace.init ...
(Reading database ... 513139 files and directories currently installed.)
Preparing to unpack .../00-initramfs-tools-bin_0.148.3_arm64.deb ...
Unpacking initramfs-tools-bin (0.148.3) over (0.148.2) ...
Preparing to unpack .../01-initramfs-tools_0.148.3_all.deb ...
Unpacking initramfs-tools (0.148.3) over (0.148.2) ...
Preparing to unpack .../02-initramfs-tools-core_0.148.3_all.deb ...
Unpacking initramfs-tools-core (0.148.3) over (0.148.2) ...
Selecting previously unselected package linux-image-6.15.4-mnt-reform-arm64.
Preparing to unpack .../03-linux-image-6.15.4-mnt-reform-arm64_6.15.4-1~exp1+reform20250628T170930Z_arm64.deb ...
Unpacking linux-image-6.15.4-mnt-reform-arm64 (6.15.4-1~exp1+reform20250628T170930Z) ...
Preparing to unpack .../04-qt6-base-dev_6.8.2+dfsg-8_arm64.deb ...
Unpacking qt6-base-dev:arm64 (6.8.2+dfsg-8) over (6.8.2+dfsg-7) ...
Preparing to unpack .../05-qmake6_6.8.2+dfsg-8_arm64.deb ...
Unpacking qmake6:arm64 (6.8.2+dfsg-8) over (6.8.2+dfsg-7) ...
Preparing to unpack .../06-qmake6-bin_6.8.2+dfsg-8_arm64.deb ...
Unpacking qmake6-bin (6.8.2+dfsg-8) over (6.8.2+dfsg-7) ...
Preparing to unpack .../07-libqt6concurrent6_6.8.2+dfsg-8_arm64.deb ...
Unpacking libqt6concurrent6:arm64 (6.8.2+dfsg-8) over (6.8.2+dfsg-7) ...
Preparing to unpack .../08-libqt6dbus6_6.8.2+dfsg-8_arm64.deb ...
Unpacking libqt6dbus6:arm64 (6.8.2+dfsg-8) over (6.8.2+dfsg-7) ...
Preparing to unpack .../09-libqt6network6_6.8.2+dfsg-8_arm64.deb ...
Unpacking libqt6network6:arm64 (6.8.2+dfsg-8) over (6.8.2+dfsg-7) ...
Preparing to unpack .../10-libqt6gui6_6.8.2+dfsg-8_arm64.deb ...
Unpacking libqt6gui6:arm64 (6.8.2+dfsg-8) over (6.8.2+dfsg-7) ...
Preparing to unpack .../11-qt6-qpa-plugins_6.8.2+dfsg-8_arm64.deb ...
Unpacking qt6-qpa-plugins:arm64 (6.8.2+dfsg-8) over (6.8.2+dfsg-7) ...
Preparing to unpack .../12-libqt6opengl6_6.8.2+dfsg-8_arm64.deb ...
Unpacking libqt6opengl6:arm64 (6.8.2+dfsg-8) over (6.8.2+dfsg-7) ...
Preparing to unpack .../13-libqt6widgets6_6.8.2+dfsg-8_arm64.deb ...
Unpacking libqt6widgets6:arm64 (6.8.2+dfsg-8) over (6.8.2+dfsg-7) ...
Preparing to unpack .../14-libqt6openglwidgets6_6.8.2+dfsg-8_arm64.deb ...
Unpacking libqt6openglwidgets6:arm64 (6.8.2+dfsg-8) over (6.8.2+dfsg-7) ...
Preparing to unpack .../15-libqt6printsupport6_6.8.2+dfsg-8_arm64.deb ...
Unpacking libqt6printsupport6:arm64 (6.8.2+dfsg-8) over (6.8.2+dfsg-7) ...
Preparing to unpack .../16-libqt6sql6_6.8.2+dfsg-8_arm64.deb ...
Unpacking libqt6sql6:arm64 (6.8.2+dfsg-8) over (6.8.2+dfsg-7) ...
Preparing to unpack .../17-libqt6test6_6.8.2+dfsg-8_arm64.deb ...
Unpacking libqt6test6:arm64 (6.8.2+dfsg-8) over (6.8.2+dfsg-7) ...
Preparing to unpack .../18-libqt6xml6_6.8.2+dfsg-8_arm64.deb ...
Unpacking libqt6xml6:arm64 (6.8.2+dfsg-8) over (6.8.2+dfsg-7) ...
Preparing to unpack .../19-qt6-base-dev-tools_6.8.2+dfsg-8_arm64.deb ...
Unpacking qt6-base-dev-tools (6.8.2+dfsg-8) over (6.8.2+dfsg-7) ...
Preparing to unpack .../20-libqt6core6t64_6.8.2+dfsg-8_arm64.deb ...
Unpacking libqt6core6t64:arm64 (6.8.2+dfsg-8) over (6.8.2+dfsg-7) ...
Preparing to unpack .../21-libkf6iconwidgets6_6.13.0-2_arm64.deb ...
Unpacking libkf6iconwidgets6:arm64 (6.13.0-2) over (6.13.0-1) ...
Preparing to unpack .../22-libkf6iconthemes6_6.13.0-2_arm64.deb ...
Unpacking libkf6iconthemes6:arm64 (6.13.0-2) over (6.13.0-1) ...
Preparing to unpack .../23-libkf6iconthemes-data_6.13.0-2_all.deb ...
Unpacking libkf6iconthemes-data (6.13.0-2) over (6.13.0-1) ...
Preparing to unpack .../24-libkf6iconthemes-bin_6.13.0-2_arm64.deb ...
Unpacking libkf6iconthemes-bin (6.13.0-2) over (6.13.0-1) ...
Preparing to unpack .../25-libqt5opengl5-dev_5.15.15+dfsg-6_arm64.deb ...
Unpacking libqt5opengl5-dev:arm64 (5.15.15+dfsg-6) over (5.15.15+dfsg-5) ...
Preparing to unpack .../26-qtbase5-dev_5.15.15+dfsg-6_arm64.deb ...
Unpacking qtbase5-dev:arm64 (5.15.15+dfsg-6) over (5.15.15+dfsg-5) ...
Preparing to unpack .../27-libqt5core5t64_5.15.15+dfsg-6_arm64.deb ...
Unpacking libqt5core5t64:arm64 (5.15.15+dfsg-6) over (5.15.15+dfsg-5) ...
Preparing to unpack .../28-libqt5dbus5t64_5.15.15+dfsg-6_arm64.deb ...
Unpacking libqt5dbus5t64:arm64 (5.15.15+dfsg-6) over (5.15.15+dfsg-5) ...
Preparing to unpack .../29-libqt5network5t64_5.15.15+dfsg-6_arm64.deb ...
Unpacking libqt5network5t64:arm64 (5.15.15+dfsg-6) over (5.15.15+dfsg-5) ...
Preparing to unpack .../30-libqt5gui5t64_5.15.15+dfsg-6_arm64.deb ...
Unpacking libqt5gui5t64:arm64 (5.15.15+dfsg-6) over (5.15.15+dfsg-5) ...
Preparing to unpack .../31-libqt5widgets5t64_5.15.15+dfsg-6_arm64.deb ...
Unpacking libqt5widgets5t64:arm64 (5.15.15+dfsg-6) over (5.15.15+dfsg-5) ...
Preparing to unpack .../32-libqt5opengl5t64_5.15.15+dfsg-6_arm64.deb ...
Unpacking libqt5opengl5t64:arm64 (5.15.15+dfsg-6) over (5.15.15+dfsg-5) ...
Preparing to unpack .../33-libqt5printsupport5t64_5.15.15+dfsg-6_arm64.deb ...
Unpacking libqt5printsupport5t64:arm64 (5.15.15+dfsg-6) over (5.15.15+dfsg-5) ...
Preparing to unpack .../34-libqt5sql5t64_5.15.15+dfsg-6_arm64.deb ...
Unpacking libqt5sql5t64:arm64 (5.15.15+dfsg-6) over (5.15.15+dfsg-5) ...
Preparing to unpack .../35-libqt5test5t64_5.15.15+dfsg-6_arm64.deb ...
Unpacking libqt5test5t64:arm64 (5.15.15+dfsg-6) over (5.15.15+dfsg-5) ...
Preparing to unpack .../36-libqt5xml5t64_5.15.15+dfsg-6_arm64.deb ...
Unpacking libqt5xml5t64:arm64 (5.15.15+dfsg-6) over (5.15.15+dfsg-5) ...
Preparing to unpack .../37-qt5-qmake_5.15.15+dfsg-6_arm64.deb ...
Unpacking qt5-qmake:arm64 (5.15.15+dfsg-6) over (5.15.15+dfsg-5) ...
Preparing to unpack .../38-qt5-qmake-bin_5.15.15+dfsg-6_arm64.deb ...
Unpacking qt5-qmake-bin (5.15.15+dfsg-6) over (5.15.15+dfsg-5) ...
Preparing to unpack .../39-qtbase5-dev-tools_5.15.15+dfsg-6_arm64.deb ...
Unpacking qtbase5-dev-tools (5.15.15+dfsg-6) over (5.15.15+dfsg-5) ...
Preparing to unpack .../40-libqt5concurrent5t64_5.15.15+dfsg-6_arm64.deb ...
Unpacking libqt5concurrent5t64:arm64 (5.15.15+dfsg-6) over (5.15.15+dfsg-5) ...
Preparing to unpack .../41-libqt5sql5-sqlite_5.15.15+dfsg-6_arm64.deb ...
Unpacking libqt5sql5-sqlite:arm64 (5.15.15+dfsg-6) over (5.15.15+dfsg-5) ...
Preparing to unpack .../42-libqt6sql6-sqlite_6.8.2+dfsg-8_arm64.deb ...
Unpacking libqt6sql6-sqlite:arm64 (6.8.2+dfsg-8) over (6.8.2+dfsg-7) ...
Selecting previously unselected package linux-headers-6.15.4-common.
Preparing to unpack .../43-linux-headers-6.15.4-common_6.15.4-1~exp1+reform20250628T170930Z_all.deb ...
Unpacking linux-headers-6.15.4-common (6.15.4-1~exp1+reform20250628T170930Z) ...
Selecting previously unselected package linux-kbuild-6.15.4.
Preparing to unpack .../44-linux-kbuild-6.15.4_6.15.4-1~exp1+reform20250628T170930Z_arm64.deb ...
Unpacking linux-kbuild-6.15.4 (6.15.4-1~exp1+reform20250628T170930Z) ...
Selecting previously unselected package linux-headers-6.15.4-mnt-reform-arm64.
Preparing to unpack .../45-linux-headers-6.15.4-mnt-reform-arm64_6.15.4-1~exp1+reform20250628T170930Z_arm64.deb ...
Unpacking linux-headers-6.15.4-mnt-reform-arm64 (6.15.4-1~exp1+reform20250628T170930Z) ...
Preparing to unpack .../46-linux-headers-mnt-reform-arm64_6.15.4-1~exp1+reform20250628T170930Z_arm64.deb ...
Unpacking linux-headers-mnt-reform-arm64 (6.15.4-1~exp1+reform20250628T170930Z) over (6.15.3-1~exp1+reform20250628T170930Z) ...
Preparing to unpack .../47-linux-image-mnt-reform-arm64_6.15.4-1~exp1+reform20250628T170930Z_arm64.deb ...
Unpacking linux-image-mnt-reform-arm64 (6.15.4-1~exp1+reform20250628T170930Z) over (6.15.3-1~exp1+reform20250628T170930Z) ...
Preparing to unpack .../48-linux-libc-dev_6.15.4-1~exp1+reform20250628T170930Z_all.deb ...
Unpacking linux-libc-dev (6.15.4-1~exp1+reform20250628T170930Z) over (6.15.3-1~exp1+reform20250628T170930Z) ...
Preparing to unpack .../49-qt6-gtk-platformtheme_6.8.2+dfsg-8_arm64.deb ...
Unpacking qt6-gtk-platformtheme:arm64 (6.8.2+dfsg-8) over (6.8.2+dfsg-7) ...
Selecting previously unselected package rtkit.
Preparing to unpack .../50-rtkit_0.13-5.1+b1_arm64.deb ...
Unpacking rtkit (0.13-5.1+b1) ...
Preparing to unpack .../51-reform-desktop-full_1.74-1+reform20250622T103710Z+1_all.deb ...
Unpacking reform-desktop-full (1.74-1+reform20250622T103710Z+1) over (1.74-1+reform20250622T103710Z+1) ...
Selecting previously unselected package reform-qcacld2-6.15.4-mnt-reform-arm64.
Preparing to unpack .../52-reform-qcacld2-6.15.4-mnt-reform-arm64_20250629T123747Z_arm64.deb ...
Unpacking reform-qcacld2-6.15.4-mnt-reform-arm64 (20250629T123747Z) ...
Preparing to unpack .../53-reform-qcacld2_20250629T123747Z_arm64.deb ...
Unpacking reform-qcacld2 (20250629T123747Z) over (20250628T180744Z) ...
Setting up linux-headers-6.15.4-common (6.15.4-1~exp1+reform20250628T170930Z) ...
Setting up libqt6core6t64:arm64 (6.8.2+dfsg-8) ...
Setting up rtkit (0.13-5.1+b1) ...
Setting up libqt6test6:arm64 (6.8.2+dfsg-8) ...
Setting up linux-libc-dev (6.15.4-1~exp1+reform20250628T170930Z) ...
Setting up libqt5core5t64:arm64 (5.15.15+dfsg-6) ...
Setting up linux-kbuild-6.15.4 (6.15.4-1~exp1+reform20250628T170930Z) ...
Setting up qt5-qmake-bin (5.15.15+dfsg-6) ...
Setting up libqt6xml6:arm64 (6.8.2+dfsg-8) ...
Setting up libqt6sql6:arm64 (6.8.2+dfsg-8) ...
Setting up libqt6sql6-sqlite:arm64 (6.8.2+dfsg-8) ...
Setting up qmake6-bin (6.8.2+dfsg-8) ...
Setting up libqt5sql5t64:arm64 (5.15.15+dfsg-6) ...
Setting up libkf6iconthemes-data (6.13.0-2) ...
Setting up reform-desktop-full (1.74-1+reform20250622T103710Z+1) ...
Setting up libqt6dbus6:arm64 (6.8.2+dfsg-8) ...
Setting up initramfs-tools-bin (0.148.3) ...
Setting up libqt6concurrent6:arm64 (6.8.2+dfsg-8) ...
Setting up libqt5dbus5t64:arm64 (5.15.15+dfsg-6) ...
Setting up libqt5sql5-sqlite:arm64 (5.15.15+dfsg-6) ...
Setting up qt6-base-dev-tools (6.8.2+dfsg-8) ...
Setting up qt5-qmake:arm64 (5.15.15+dfsg-6) ...
Setting up libqt5concurrent5t64:arm64 (5.15.15+dfsg-6) ...
Setting up libqt5network5t64:arm64 (5.15.15+dfsg-6) ...
Setting up libqt5xml5t64:arm64 (5.15.15+dfsg-6) ...
Setting up libqt5test5t64:arm64 (5.15.15+dfsg-6) ...
Setting up qmake6:arm64 (6.8.2+dfsg-8) ...
Setting up qtbase5-dev-tools (5.15.15+dfsg-6) ...
Setting up libqt5gui5t64:arm64 (5.15.15+dfsg-6) ...
Setting up libqt6gui6:arm64 (6.8.2+dfsg-8) ...
Setting up qt6-gtk-platformtheme:arm64 (6.8.2+dfsg-8) ...
Setting up libqt6network6:arm64 (6.8.2+dfsg-8) ...
Setting up initramfs-tools-core (0.148.3) ...
Setting up initramfs-tools (0.148.3) ...
update-initramfs: deferring update (trigger activated)
Setting up qt6-qpa-plugins:arm64 (6.8.2+dfsg-8) ...
Setting up libqt5widgets5t64:arm64 (5.15.15+dfsg-6) ...
Setting up libqt6opengl6:arm64 (6.8.2+dfsg-8) ...
Setting up libqt6widgets6:arm64 (6.8.2+dfsg-8) ...
Setting up libkf6iconthemes6:arm64 (6.13.0-2) ...
Setting up linux-image-6.15.4-mnt-reform-arm64 (6.15.4-1~exp1+reform20250628T170930Z) ...
I: /vmlinuz.old is now a symlink to boot/vmlinuz-6.15.3-mnt-reform-arm64
I: /initrd.img.old is now a symlink to boot/initrd.img-6.15.3-mnt-reform-arm64
I: /vmlinuz is now a symlink to boot/vmlinuz-6.15.4-mnt-reform-arm64
I: /initrd.img is now a symlink to boot/initrd.img-6.15.4-mnt-reform-arm64
/etc/kernel/postinst.d/dkms:
Sign command: /lib/modules/6.15.4-mnt-reform-arm64/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Autoinstall of module reform2_lpc/1.74 for kernel 6.15.4-mnt-reform-arm64 (aarch64)
Building module(s)...... done.
Signing module /var/lib/dkms/reform2_lpc/1.74/build/reform2_lpc.ko
Installing /lib/modules/6.15.4-mnt-reform-arm64/updates/dkms/reform2_lpc.ko.xz
Running depmod...... done.

Autoinstall on 6.15.4-mnt-reform-arm64 succeeded for module(s) reform2_lpc.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-6.15.4-mnt-reform-arm64
Using DTB: freescale/imx8mp-mnt-pocket-reform.dtb
Installing /usr/lib/linux-image-6.15.4-mnt-reform-arm64/freescale/imx8mp-mnt-pocket-reform.dtb into /boot/dtbs/6.15.4-mnt-reform-arm64/freescale/imx8mp-mnt-pocket-reform.dtb
Installing new imx8mp-mnt-pocket-reform.dtb.
flash-kernel: deferring update (trigger activated)
/etc/kernel/postinst.d/reform-qcacld2:
Starting background process to update reform-qcacld2 driver package (for Wi-Fi) to match kernel version.
/etc/kernel/postinst.d/zz-flash-kernel:
Using DTB: freescale/imx8mp-mnt-pocket-reform.dtb
Installing /usr/lib/linux-image-6.15.4-mnt-reform-arm64/freescale/imx8mp-mnt-pocket-reform.dtb into /boot/dtbs/6.15.4-mnt-reform-arm64/freescale/imx8mp-mnt-pocket-reform.dtb
Taking backup of imx8mp-mnt-pocket-reform.dtb.
Installing new imx8mp-mnt-pocket-reform.dtb.
flash-kernel: deferring update (trigger activated)
/etc/kernel/postinst.d/zz-reform-tools:
I: Now running: /etc/kernel/postinst.d/zz-reform-tools 6.15.4-mnt-reform-arm64 /boot/vmlinuz-6.15.4-mnt-reform-arm64
I: with DEB_MAINT_PARAMS=configure 
I: copying /usr/lib/linux-image-6.15.4-mnt-reform-arm64/amlogic/meson-g12b-bananapi-cm4-mnt-pocket-reform.dtb to /boot/dtbs/6.15.4-mnt-reform-arm64/amlogic/meson-g12b-bananapi-cm4-mnt-pocket-reform.dtb
I: copying /usr/lib/linux-image-6.15.4-mnt-reform-arm64/rockchip/rk3588-mnt-pocket-reform.dtb to /boot/dtbs/6.15.4-mnt-reform-arm64/rockchip/rk3588-mnt-pocket-reform.dtb
I: copying /usr/lib/linux-image-6.15.4-mnt-reform-arm64/freescale/imx8mp-mnt-pocket-reform.dtb to /boot/dtbs/6.15.4-mnt-reform-arm64/freescale/imx8mp-mnt-pocket-reform.dtb
I: copying /usr/lib/linux-image-6.15.4-mnt-reform-arm64/freescale/imx8mq-mnt-reform2-hdmi.dtb to /boot/dtbs/6.15.4-mnt-reform-arm64/freescale/imx8mq-mnt-reform2-hdmi.dtb
I: copying /usr/lib/linux-image-6.15.4-mnt-reform-arm64/amlogic/meson-g12b-bananapi-cm4-mnt-reform2.dtb to /boot/dtbs/6.15.4-mnt-reform-arm64/amlogic/meson-g12b-bananapi-cm4-mnt-reform2.dtb
I: copying /usr/lib/linux-image-6.15.4-mnt-reform-arm64/freescale/fsl-ls1028a-mnt-reform2.dtb to /boot/dtbs/6.15.4-mnt-reform-arm64/freescale/fsl-ls1028a-mnt-reform2.dtb
I: copying /usr/lib/linux-image-6.15.4-mnt-reform-arm64/rockchip/rk3588-mnt-reform2.dtb to /boot/dtbs/6.15.4-mnt-reform-arm64/rockchip/rk3588-mnt-reform2.dtb
I: copying /usr/lib/linux-image-6.15.4-mnt-reform-arm64/rockchip/rk3588-mnt-reform2-dsi.dtb to /boot/dtbs/6.15.4-mnt-reform-arm64/rockchip/rk3588-mnt-reform2-dsi.dtb
I: copying /usr/lib/linux-image-6.15.4-mnt-reform-arm64/freescale/imx8mp-mnt-reform2.dtb to /boot/dtbs/6.15.4-mnt-reform-arm64/freescale/imx8mp-mnt-reform2.dtb
I: copying /usr/lib/linux-image-6.15.4-mnt-reform-arm64/freescale/imx8mq-mnt-reform2.dtb to /boot/dtbs/6.15.4-mnt-reform-arm64/freescale/imx8mq-mnt-reform2.dtb
I: copying /usr/lib/linux-image-6.15.4-mnt-reform-arm64/rockchip/rk3588-mnt-reform-next.dtb to /boot/dtbs/6.15.4-mnt-reform-arm64/rockchip/rk3588-mnt-reform-next.dtb
Setting up libqt5opengl5t64:arm64 (5.15.15+dfsg-6) ...
Setting up libqt6openglwidgets6:arm64 (6.8.2+dfsg-8) ...
Setting up libqt5printsupport5t64:arm64 (5.15.15+dfsg-6) ...
Setting up libqt6printsupport6:arm64 (6.8.2+dfsg-8) ...
Setting up linux-headers-6.15.4-mnt-reform-arm64 (6.15.4-1~exp1+reform20250628T170930Z) ...
Setting up reform-qcacld2-6.15.4-mnt-reform-arm64 (20250629T123747Z) ...
Setting up libkf6iconthemes-bin (6.13.0-2) ...
Setting up qt6-base-dev:arm64 (6.8.2+dfsg-8) ...
Setting up libkf6iconwidgets6:arm64 (6.13.0-2) ...
Setting up linux-image-mnt-reform-arm64 (6.15.4-1~exp1+reform20250628T170930Z) ...
Setting up qtbase5-dev:arm64 (5.15.15+dfsg-6) ...
Setting up linux-headers-mnt-reform-arm64 (6.15.4-1~exp1+reform20250628T170930Z) ...
Setting up reform-qcacld2 (20250629T123747Z) ...
Setting up libqt5opengl5-dev:arm64 (5.15.15+dfsg-6) ...
Processing triggers for man-db (2.13.1-1) ...
Processing triggers for dbus (1.16.2-2) ...
Processing triggers for libc-bin (2.41-9) ...
Processing triggers for initramfs-tools (0.148.3) ...
update-initramfs: Generating /boot/initrd.img-6.15.4-mnt-reform-arm64
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.15.4-mnt-reform-arm64 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:
 initramfs-tools
Error: Sub-process /usr/bin/dpkg returned an error code (1)

Should I be worried, or go ahead with reboot? I am not sure.

Thank you.

PS: These are current state of the filesystem…

shigeru@mntpr-0:~$ df -h
Filesystem          Size  Used Avail Use% Mounted on
udev                3.8G     0  3.8G   0% /dev
tmpfs               791M  1.8M  789M   1% /run
/dev/reformvg/root  1.8T  1.1T  707G  60% /
tmpfs               3.9G   12K  3.9G   1% /dev/shm
tmpfs               5.0M   12K  5.0M   1% /run/lock
tmpfs               3.9G  1.7M  3.9G   1% /tmp
tmpfs               1.0M     0  1.0M   0% /run/credentials/systemd-journald.service
/dev/mmcblk2p1      448M  387M   33M  93% /boot
tmpfs               1.0M     0  1.0M   0% /run/credentials/serial-getty@ttymxc1.service
tmpfs               791M  168K  791M   1% /run/user/1000
shigeru@mntpr-0:~$ ls /boot
boot.scr                        initrd.img-6.14.5-mnt-reform-arm64
boot.scr.bak                    initrd.img-6.14.6-mnt-reform-arm64
config-6.14.5-mnt-reform-arm64  initrd.img-6.15.3-mnt-reform-arm64
config-6.14.6-mnt-reform-arm64  initrd.img-6.15.4-mnt-reform-arm64
config-6.15.3-mnt-reform-arm64  lost+found
config-6.15.4-mnt-reform-arm64  System.map-6.14.5-mnt-reform-arm64
dtb                             System.map-6.14.6-mnt-reform-arm64
dtb-6.14.5-mnt-reform-arm64     System.map-6.15.3-mnt-reform-arm64
dtb-6.14.6-mnt-reform-arm64     System.map-6.15.4-mnt-reform-arm64
dtb-6.15.3-mnt-reform-arm64     vmlinuz-6.14.5-mnt-reform-arm64
dtb-6.15.4-mnt-reform-arm64     vmlinuz-6.14.6-mnt-reform-arm64
dtbs                            vmlinuz-6.15.3-mnt-reform-arm64
flash.bin                       vmlinuz-6.15.4-mnt-reform-arm64

This is your problem. This is also visible in your df -h output:

33M is barely not enough for your initramfs.

Can you check whether your kernel packages are indeed all marked as automatic and that you do not have manually installed kernel packages?
You could run this:

apt-mark showauto | grep linux-image
apt-mark showmanual | grep linux-image
1 Like

Hello @josch ,

So this means that I need to manually remove linux-image-6.14.5-mnt-reform-arm64?

I thought 140 MB space in /boot before this full-upgrade process was enough.

shigeru@mntpr-0:~$ apt-mark showauto | grep linux-image
linux-image-6.14.6-mnt-reform-arm64
linux-image-6.15.3-mnt-reform-arm64
linux-image-6.15.4-mnt-reform-arm64
shigeru@mntpr-0:~$ apt-mark showmanual | grep linux-image
linux-image-6.14.5-mnt-reform-arm64
linux-image-mnt-reform-arm64

Thank you.

Either that or mark it as “auto” using apt-mark and then it will be considered for removal once you run “apt autoremove”.

Me too. It is suspicious that you have “only” four kernels installed and your 448M /boot partition is already full. Could you run this to check what is taking up the space:

sudo du -s /boot/* | sort -n

For example, this is what I get:

1	/boot/dtb
1	/boot/dtb-6.10.6+bpo-mnt-reform-arm64
1	/boot/dtb-6.11.5+bpo-mnt-reform-arm64
1	/boot/dtb-6.12.9+bpo-mnt-reform-arm64
1	/boot/System.map-6.10.6+bpo-mnt-reform-arm64
1	/boot/System.map-6.11.5+bpo-mnt-reform-arm64
1	/boot/System.map-6.12.9+bpo-mnt-reform-arm64
4	/boot/extlinux
6	/boot/boot.scr
6	/boot/boot.scr.bak
17	/boot/lost+found
321	/boot/config-6.10.6+bpo-mnt-reform-arm64
324	/boot/config-6.11.5+bpo-mnt-reform-arm64
328	/boot/config-6.12.9+bpo-mnt-reform-arm64
1549	/boot/flash.bin
2368	/boot/dtbs
31899	/boot/initrd.img-6.5.0-0.deb12.4-reform2-arm64.new
33385	/boot/initrd.img-6.10.6+bpo-mnt-reform-arm64
33571	/boot/vmlinuz-6.10.6+bpo-mnt-reform-arm64
33582	/boot/initrd.img-6.11.5+bpo-mnt-reform-arm64
33738	/boot/initrd.img-6.12.9+bpo-mnt-reform-arm64
34272	/boot/vmlinuz-6.11.5+bpo-mnt-reform-arm64
35832	/boot/vmlinuz-6.12.9+bpo-mnt-reform-arm64

This means that my kernels and initramfs are at around 31 to 35 MB large. Yours are probably much larger?

Hello @josch ,

Okay,

Here is my result for sudo du -s /boot/* | sort -n:

shigeru@mntpr-0:~$ sudo du -s /boot/* | sort -n
1	/boot/dtb
1	/boot/dtb-6.14.5-mnt-reform-arm64
1	/boot/dtb-6.14.6-mnt-reform-arm64
1	/boot/dtb-6.15.3-mnt-reform-arm64
1	/boot/dtb-6.15.4-mnt-reform-arm64
1	/boot/System.map-6.14.5-mnt-reform-arm64
1	/boot/System.map-6.14.6-mnt-reform-arm64
1	/boot/System.map-6.15.3-mnt-reform-arm64
1	/boot/System.map-6.15.4-mnt-reform-arm64
6	/boot/boot.scr
6	/boot/boot.scr.bak
12	/boot/lost+found
332	/boot/config-6.14.5-mnt-reform-arm64
332	/boot/config-6.14.6-mnt-reform-arm64
334	/boot/config-6.15.3-mnt-reform-arm64
334	/boot/config-6.15.4-mnt-reform-arm64
1990	/boot/flash.bin
6652	/boot/dtbs
34298	/boot/vmlinuz-6.14.5-mnt-reform-arm64
34368	/boot/vmlinuz-6.14.6-mnt-reform-arm64
34905	/boot/vmlinuz-6.15.4-mnt-reform-arm64
34906	/boot/vmlinuz-6.15.3-mnt-reform-arm64
44387	/boot/initrd.img-6.14.5-mnt-reform-arm64
67237	/boot/initrd.img-6.14.6-mnt-reform-arm64
67796	/boot/initrd.img-6.15.4-mnt-reform-arm64
67825	/boot/initrd.img-6.15.3-mnt-reform-arm64

The initramfs looking twice as large as yours… :thinking:

I tried apt-mark and apt autoremove for removing linux-image-6.14.5-mnt-reform-arm64 but got this error while apt autoremove:

shigeru@mntpr-0:~$ sudo apt-mark auto linux-image-6.14.5-mnt-reform-arm64
linux-image-6.14.5-mnt-reform-arm64 set to automatically installed.
shigeru@mntpr-0:~$ sudo apt autoremove
REMOVING:                       
  linux-headers-6.14.6-common
  linux-headers-6.14.6-mnt-reform-arm64
  linux-image-6.14.5-mnt-reform-arm64
  linux-image-6.14.6-mnt-reform-arm64
  linux-kbuild-6.14.6
  reform-qcacld2-6.15.3-mnt-reform-arm64

Summary:
  Upgrading: 0, Installing: 0, Removing: 6, Not Upgrading: 0
  1 not fully installed or removed.
  Freed space: 402 MB

Continue? [Y/n] 
(Reading database ... 537799 files and directories currently installed.)
Removing linux-headers-6.14.6-mnt-reform-arm64 (6.14.6-1~exp1+reform20250621T044945Z) ...
Removing linux-image-6.14.6-mnt-reform-arm64 (6.14.6-1~exp1+reform20250621T044945Z) ...
/etc/kernel/prerm.d/dkms:
dkms: removing module reform2_lpc/1.74 for kernel 6.14.6-mnt-reform-arm64 (aarch64)
Module reform2_lpc/1.74 for kernel 6.14.6-mnt-reform-arm64 (aarch64):
Before uninstall, this module version was ACTIVE on this kernel.
Deleting /lib/modules/6.14.6-mnt-reform-arm64/updates/dkms/reform2_lpc.ko.xz

Running depmod... done.
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-6.14.6-mnt-reform-arm64
/etc/kernel/postrm.d/zz-flash-kernel:
Using DTB: freescale/imx8mp-mnt-pocket-reform.dtb
flash-kernel: Kernel 6.14.6-mnt-reform-arm64 has been removed.
flash-kernel: A higher version (6.15.4-mnt-reform-arm64) is still installed, no reflashing required.
Removing linux-image-6.14.5-mnt-reform-arm64 (6.14.5-1~exp1+reform20250508T045900Z) ...
Usage: /usr/bin/linux-run-hooks image MAINT-SCRIPT KERNEL-VER IMAGE-PATH -- MAINT-PARAMS ...
       /usr/bin/linux-run-hooks headers MAINT-SCRIPT KERNEL-VER -- MAINT-PARAMS ...

This command is intended to be called from the maintainer scripts of
Linux kernel image and headers packages.  It executes hooks installed
in the appropriate subdirectories of /etc/kernel and
/usr/share/kernel.

The MAINT-SCRIPT argument must be the name of the maintainer script:
preinst, postinst, prerm, or postrm.

The KERNEL-VER argument must be the kernel version string as shown by
'uname -r' and used in filenames, not the package version.

The IMAGE-PATH argument must be the absolute filename of the kernel
image.

The MAINT-PARAMS arguments must be the parameters received by the
maintainer script.
dpkg: error processing package linux-image-6.14.5-mnt-reform-arm64 (--remove):
 installed linux-image-6.14.5-mnt-reform-arm64 package pre-removal script subprocess returned error exit status 2
dpkg: too many errors, stopping
Errors were encountered while processing:
 linux-image-6.14.5-mnt-reform-arm64
Processing was halted because there were too many errors.
Error: Sub-process /usr/bin/dpkg returned an error code (1)

Here is current df -h result:

shigeru@mntpr-0:~$ df -h
Filesystem          Size  Used Avail Use% Mounted on
udev                3.8G     0  3.8G   0% /dev
tmpfs               791M  1.8M  789M   1% /run
/dev/reformvg/root  1.8T  1.1T  707G  60% /
tmpfs               3.9G   12K  3.9G   1% /dev/shm
tmpfs               5.0M   12K  5.0M   1% /run/lock
tmpfs               3.9G  1.7M  3.9G   1% /tmp
tmpfs               1.0M     0  1.0M   0% /run/credentials/systemd-journald.service
/dev/mmcblk2p1      448M  287M  132M  69% /boot
tmpfs               1.0M     0  1.0M   0% /run/credentials/serial-getty@ttymxc1.service
tmpfs               791M  168K  791M   1% /run/user/1000

And, ls /boot:

shigeru@mntpr-0:~$ ls /boot
boot.scr                        initrd.img-6.14.5-mnt-reform-arm64
boot.scr.bak                    initrd.img-6.15.3-mnt-reform-arm64
config-6.14.5-mnt-reform-arm64  initrd.img-6.15.4-mnt-reform-arm64
config-6.15.3-mnt-reform-arm64  lost+found
config-6.15.4-mnt-reform-arm64  System.map-6.14.5-mnt-reform-arm64
dtb                             System.map-6.15.3-mnt-reform-arm64
dtb-6.14.5-mnt-reform-arm64     System.map-6.15.4-mnt-reform-arm64
dtb-6.15.3-mnt-reform-arm64     vmlinuz-6.14.5-mnt-reform-arm64
dtb-6.15.4-mnt-reform-arm64     vmlinuz-6.15.3-mnt-reform-arm64
dtbs                            vmlinuz-6.15.4-mnt-reform-arm64
flash.bin

And, just in case sudo reform-check:

shigeru@mntpr-0:~$ sudo reform-check
I: Contents of /proc/device-tree/model: MNT Pocket Reform with i.MX8MP Module
I: `uname -a` output: Linux mntpr-0 6.15.3-mnt-reform-arm64 #1 SMP Debian 6.15.3-1~exp1+reform20250628T170930Z (2025-06-28) aarch64 GNU/Linux
I: Version of linux-image-mnt-reform-arm64: 6.15.4-1~exp1+reform20250628T170930Z
I: Version of reform-tools: 1.74-1+reform20250622T103710Z+1
I: Mount source of /: /dev/reformvg/root (LVM vg 'reformvg' on LUKS device 'reform_crypt' on SSD)
I: Mount source of /boot: /dev/mmcblk2p1 (eMMC)
E: Your /etc/skel/.profile contains an outdated line that attempts to print /etc/reform-help or run reform-help.
E: Consider simply deleting that offending last line of your /etc/skel/.profile.
I: the following files differ from how they are shipped by reform-tools (ignore /var/lib/alsa/asound.state):
??5??????   /var/lib/alsa/asound.state
E: the currently running kernel is not the one provided by linux-image-mnt-reform-arm64
E: /boot/boot.scr doesn't reference the currently running kernel

Thank you. I have not rebooted my Pocket Reform, yet.

You are hitting the issue @kensanata encountered in Autoremove linux-image-6.12.25-mnt-reform-arm64

The workaround is to manually edit /var/lib/dpkg/info/linux-image-6.14.5-mnt-reform-arm64.prerm as well as /var/lib/dpkg/info/linux-image-6.14.5-mnt-reform-arm64.postrm.
Change linux-run-hooks prerm "$*" $version $image_path to linux-run-hooks image prerm $version $image_path -- "$@" in the first file and change linux-run-hooks postrm "$*" $version $image_path to linux-run-hooks image postrm $version $image_path -- "$@" in the second file.

Hello @josch ,

Just want to confirm to be sure before running apt autoremove, I have edited as follows:

shigeru@mntpr-0:~$ cat /var/lib/dpkg/info/linux-image-6.14.5-mnt-reform-arm64.prerm
#!/bin/sh -e

version=6.14.5-mnt-reform-arm64
image_path=/boot/vmlinuz-$version

if [ "$1" != remove ]; then
    exit 0
fi

linux-check-removal $version

#linux-run-hooks prerm "$*" $version $image_path
linux-run-hooks image prerm $version $image_path -- "$@"

exit 0
shigeru@mntpr-0:~$ cat /var/lib/dpkg/info/linux-image-6.14.5-mnt-reform-arm64.postrm
#!/bin/sh -e

version=6.14.5-mnt-reform-arm64
image_path=/boot/vmlinuz-$version

rm -f /lib/modules/$version/.fresh-install

if [ "$1" != upgrade ] && command -v linux-update-symlinks >/dev/null; then
    linux-update-symlinks remove $version $image_path
fi

if command -v linux-run-hooks >/dev/null; then
    #linux-run-hooks postrm "$*" $version $image_path
    linux-run-hooks image postrm $version $image_path -- "$@"
else
    echo >&2 'W: linux-base is not installed; cannot run postrm hooks'
fi

if [ "$1" = purge ]; then
    for extra_file in modules.dep modules.isapnpmap modules.pcimap \
                      modules.usbmap modules.parportmap \
                      modules.generic_string modules.ieee1394map \
                      modules.ieee1394map modules.pnpbiosmap \
                      modules.alias modules.ccwmap modules.inputmap \
                      modules.symbols modules.ofmap \
                      modules.seriomap modules.\*.bin \
                      modules.softdep modules.weakdep modules.devname; do
	eval rm -f /lib/modules/$version/$extra_file
    done
    rmdir /lib/modules/$version || true
fi

exit 0

Are these correct as you suggested?

Thanks.

Yes, that looks good!

Hello @josch ,

Thank you for confirmation. I have run apt autoremove and here is the result:

shigeru@mntpr-0:~$ sudo apt autoremove
Summary:                        
  Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0
  1 not fully installed or removed.
  Space needed: 0 B / 758 GB available

Setting up initramfs-tools (0.148.3) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.148.3) ...
update-initramfs: Generating /boot/initrd.img-6.15.4-mnt-reform-arm64
Using DTB: freescale/imx8mp-mnt-pocket-reform.dtb
Installing /usr/lib/linux-image-6.15.4-mnt-reform-arm64/freescale/imx8mp-mnt-pocket-reform.dtb into /boot/dtbs/6.15.4-mnt-reform-arm64/freescale/imx8mp-mnt-pocket-reform.dtb
Taking backup of imx8mp-mnt-pocket-reform.dtb.
Installing new imx8mp-mnt-pocket-reform.dtb.
flash-kernel: installing version 6.15.4-mnt-reform-arm64
Generating boot script u-boot image... done.
Taking backup of boot.scr.
Installing new boot.scr.

Then I checked /boot:

shigeru@mntpr-0:~$ ls /boot
boot.scr                        initrd.img-6.14.5-mnt-reform-arm64
boot.scr.bak                    initrd.img-6.15.3-mnt-reform-arm64
config-6.14.5-mnt-reform-arm64  initrd.img-6.15.4-mnt-reform-arm64
config-6.15.3-mnt-reform-arm64  lost+found
config-6.15.4-mnt-reform-arm64  System.map-6.14.5-mnt-reform-arm64
dtb                             System.map-6.15.3-mnt-reform-arm64
dtb-6.14.5-mnt-reform-arm64     System.map-6.15.4-mnt-reform-arm64
dtb-6.15.3-mnt-reform-arm64     vmlinuz-6.14.5-mnt-reform-arm64
dtb-6.15.4-mnt-reform-arm64     vmlinuz-6.15.3-mnt-reform-arm64
dtbs                            vmlinuz-6.15.4-mnt-reform-arm64
flash.bin

It seems linux-image-6.14.5-mnt-reform-arm64 survived not getting removed. Should I remove those files directly from /boot?

I thought I would do the apt remove linux-image-6.14.5-mnt-reform-arm64 as well, and I think it worked out.

shigeru@mntpr-0:~$ sudo apt remove linux-image-6.14.5-mnt-reform-arm64
REMOVING:                       
  linux-image-6.14.5-mnt-reform-arm64

Summary:
  Upgrading: 0, Installing: 0, Removing: 1, Not Upgrading: 0
  Freed space: 166 MB

Continue? [Y/n] 
(Reading database ... 523805 files and directories currently installed.)
Removing linux-image-6.14.5-mnt-reform-arm64 (6.14.5-1~exp1+reform20250508T045900Z) ...
/etc/kernel/prerm.d/dkms:
dkms: removing module reform2_lpc/1.74 for kernel 6.14.5-mnt-reform-arm64 (aarch64)
Module reform2_lpc/1.74 for kernel 6.14.5-mnt-reform-arm64 (aarch64):
Before uninstall, this module version was ACTIVE on this kernel.
Deleting /lib/modules/6.14.5-mnt-reform-arm64/updates/dkms/reform2_lpc.ko.xz

Running depmod... done.
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-6.14.5-mnt-reform-arm64
/etc/kernel/postrm.d/zz-flash-kernel:
Using DTB: freescale/imx8mp-mnt-pocket-reform.dtb
flash-kernel: Kernel 6.14.5-mnt-reform-arm64 has been removed.
flash-kernel: A higher version (6.15.4-mnt-reform-arm64) is still installed, no reflashing required.

Also ran these for confirmation:

shigeru@mntpr-0:~$ df -h
Filesystem          Size  Used Avail Use% Mounted on
udev                3.8G     0  3.8G   0% /dev
tmpfs               791M  1.8M  789M   1% /run
/dev/reformvg/root  1.8T  1.1T  707G  60% /
tmpfs               3.9G   12K  3.9G   1% /dev/shm
tmpfs               5.0M   12K  5.0M   1% /run/lock
tmpfs               3.9G  1.7M  3.9G   1% /tmp
tmpfs               1.0M     0  1.0M   0% /run/credentials/systemd-journald.service
/dev/mmcblk2p1      448M  210M  209M  51% /boot
tmpfs               1.0M     0  1.0M   0% /run/credentials/serial-getty@ttymxc1.service
tmpfs               791M  156K  791M   1% /run/user/1000
shigeru@mntpr-0:~$ ls /boot
boot.scr                        flash.bin
boot.scr.bak                    initrd.img-6.15.3-mnt-reform-arm64
config-6.15.3-mnt-reform-arm64  initrd.img-6.15.4-mnt-reform-arm64
config-6.15.4-mnt-reform-arm64  lost+found
dtb                             System.map-6.15.3-mnt-reform-arm64
dtb-6.15.3-mnt-reform-arm64     System.map-6.15.4-mnt-reform-arm64
dtb-6.15.4-mnt-reform-arm64     vmlinuz-6.15.3-mnt-reform-arm64
dtbs                            vmlinuz-6.15.4-mnt-reform-arm64

Rebooted and it seems that all are working fine.

shigeru@mntpr-0:~$ sudo reform-check
I: Contents of /proc/device-tree/model: MNT Pocket Reform with i.MX8MP Module
I: `uname -a` output: Linux mntpr-0 6.15.4-mnt-reform-arm64 #1 SMP Debian 6.15.4-1~exp1+reform20250628T170930Z (2025-06-28) aarch64 GNU/Linux
I: Version of linux-image-mnt-reform-arm64: 6.15.4-1~exp1+reform20250628T170930Z
I: Version of reform-tools: 1.74-1+reform20250622T103710Z+1
I: Mount source of /: /dev/reformvg/root (LVM vg 'reformvg' on LUKS device 'reform_crypt' on SSD)
I: Mount source of /boot: /dev/mmcblk2p1 (eMMC)
E: Your /etc/skel/.profile contains an outdated line that attempts to print /etc/reform-help or run reform-help.
E: Consider simply deleting that offending last line of your /etc/skel/.profile.
I: the following files differ from how they are shipped by reform-tools (ignore /var/lib/alsa/asound.state):
??5??????   /var/lib/alsa/asound.state

Thank you for your kind attention and detailed help.

1 Like