Constant errors during updates

I opened the dashboard, software updates and saw that there were 5 updates waiting installation. I started the process and quickly received the following error message: Error while installing package: installed linux-headers-6.18.29+rpt-rpi-2712 package post-installation script subprocess returned error exit status 1. I'm not linux (trixie) smart so looking for assistance.

Regards,

Greg Higgins KB5GLV

Please provide the screenshot or copy/paste the logs in.

Excuse my ignorance, but which log-ins are you refering?

He means paste the logs INTO your reply. He wants to see the error messages.

I believe he may be referring to this, received in an off-list inquiry. He indicated that he had ran “sudo apt update && sudo full upgrade -y”. This resulted in the below message being returned.

root@node513470:~# sudo apt update && sudo apt full-upgrade -y
Hit:1 Index of /debian trixie InRelease
Get:2 Index of /debian trixie-updates InRelease [47.3 kB]
Get:3 Index of /debian-security trixie-security InRelease [43.4 kB]
Get:4 Index of /debian-security trixie-security/main arm64 Packages [160 kB]
Get:5 Index of /public/ trixie InRelease [23.2 kB]
Get:6 Index of /debian-security trixie-security/main Translation-en [99.2 kB]
Get:7 Index of /debian trixie InRelease [54.9 kB]
Get:8 Index of /debian trixie/main arm64 Packages [444 kB]
Fetched 872 kB in 1s (622 kB/s)
10 packages can be upgraded. Run 'apt list --upgradable' to see them.
Hmm, seems like the AutoRemover destroyed something which really
shouldn't happen. Please file a bug report against apt.

The following information may help to resolve the situation:

Unsatisfied dependencies:
linux-headers-arm64 : Depends: linux-headers-6.12.86+deb13-arm64 (= 6.12.86-1) but it is not going to be installed
Error: Internal Error, AutoRemover broke stuff

That is exactly what I received the first time I tried to update. And I included the error message from the second time in my original post.

sudo apt --fix-broken install

that will fix you up.

I doubt --fix-broken is going to clear up that. If apt is complaining about AutoRemover, then something is corrupted in the package database. Since this is a Pi, I'd be wary of SDCard errors. If --fix-broken didn't fix it, try running this:

dpkg --configure -a --simulate
apt-get check

And see if that suggests a fix. You can also try to remove all of the header packages (which are not needed for app_rpt any longer):

apt remove $(dpkg -l | awk '{print $2}' | grep -E '^linux\-header')