On Thu, Oct 22, 2026 at 12:28:45 +0200, Nicolas George wrote: > > Detlef Vollmann (HE12026-10-22): > > old hddtemp package prerm maintainer script subprocess failed with exit > > status 1
> > I could create some dummy script that makes sure the prerm script > > doesn't fail, but I'm curious if there's an "official" way to do it. > > Start by looking at the prerm script and find out WHY it fails. The scripts are in /var/lib/dpkg/info/ and this one should be named hddtemp.prerm (packagename dot prerm). They are almost always /bin/sh scripts. Assuming yours is a /bin/sh script, a reasonable starting point would be adding "set -x" below the header line, to enable trace mode. This will show you everything the script is doing. Then repeat your "dpkg --purge hddtemp" command and see what happens. If you decide that the failure is harmless (or that you can do manually what the script was trying to do automatically), you can put "exit 0" near the top of the script so that it succeeds without doing anything, which will enable the package removal to proceed to the next step. However, please be sure you *understand* what's failing before doing that. If you don't understand the set -x output, post it here and ask for guidance.

