20250624 sudo apt update; sudo apt full-upgrade error, no longer

Hello,

I have got the following error when trying to upgrade today:

shigeru@mntpr-0:~$ sudo apt full-upgrade
The following packages were automatically installed and are no longer required:
  linux-headers-6.14.5-common  reform-qcacld2-6.14.6-mnt-reform-arm64
  linux-kbuild-6.14.5
Use 'sudo apt autoremove' to remove them.

Upgrading:
  flash-kernel                         reform-qcacld2
  linux-image-6.15.3-mnt-reform-arm64  reform-qcacld2-6.15.3-mnt-reform-arm64

REMOVING:
  linux-headers-6.14.5-mnt-reform-arm64  linux-image-6.14.5-mnt-reform-arm64

Summary:
  Upgrading: 4, Installing: 0, Removing: 2, Not Upgrading: 0
  Download size: 78.5 MB
  Freed space: 170 MB

Continue? [Y/n] 
Get:1 https://mntre.com/reform-debian-repo reform/main arm64 linux-image-6.15.3-mnt-reform-arm64 arm64 6.15.3-1~exp1+reform20250622T211021Z [76.8 MB]
Get:2 https://mntre.com/reform-debian-repo reform/main arm64 flash-kernel arm64 3.109+reform20250520T044859Z+1 [33.2 kB]
Get:3 https://mntre.com/reform-debian-repo reform/main arm64 reform-qcacld2-6.15.3-mnt-reform-arm64 arm64 20250624T094928Z [1,218 kB]
Get:4 https://mntre.com/reform-debian-repo reform/main arm64 reform-qcacld2 arm64 20250624T094928Z [414 kB]
Fetched 78.5 MB in 21s (3,672 kB/s)                                            
Retrieving bug reports... Done
Parsing Found/Fixed information... Done
Preconfiguring packages ...
(Reading database ... 494094 files and directories currently installed.)
Removing linux-headers-6.14.5-mnt-reform-arm64 (6.14.5-1~exp1+reform20250508T045900Z) ...
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 sudo reform-check output:

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+reform20250622T211021Z (2025-06-22) aarch64 GNU/Linux
I: Version of linux-image-mnt-reform-arm64: 6.15.3-1~exp1+reform20250622T211021Z
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

Should I do autoremove and upgrade separately?

Thanks.

Hello,

Just run the same update and full-upgrade, and completed with no error this time.

1 Like