Article View: linux.debian.user
Article #244Re: How to remove a package for which prerm fails
From: Greg Wooledge
Date: Thu, 22 Oct 2026 11:50
Date: Thu, 22 Oct 2026 11:50
28 lines
2916 bytes
2916 bytes
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.
Technical Details
Message-ID:
<NQZsZ-7aQs-1@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!bofh.it!news.nic.it!robomodReferences:
<NQXhv-79Iz-3@gated-at.bofh.it> <NQYdz-7adz-1@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!bofh.it!news.nic.it!robomod From: Greg Wooledge <greg@wooledge.org> Newsgroups: linux.debian.user Subject: Re: How to remove a package for which prerm fails Date: Thu, 22 Oct 2026 13:50:01 +0200 Message-ID: <NQZsZ-7aQs-1@gated-at.bofh.it> References: <NQXhv-79Iz-3@gated-at.bofh.it> <NQYdz-7adz-1@gated-at.bofh.it> X-Original-To: debian-user@lists.debian.org X-Mailbox-Line: From debian-user-request@lists.debian.org Thu Oct 22 11:47:17 2026 Old-Return-Path: <greg@wooledge.org> X-Amavis-Spam-Status: No, score=-1.9 tagged_above=-10000 required=5.3 tests=[BAYES_00=-1.9] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -4.6 Mail-Followup-To: debian-user@lists.debian.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Mailing-List: <debian-user@lists.debian.org> archive/latest/832552 List-ID: <debian-user.lists.debian.org> List-URL: <https://lists.debian.org/debian-user/> List-Archive: https://lists.debian.org/msgid-search/20261022114702.GC28455@wooledge.org Approved: robomod@news.nic.it Lines: 28 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Thu, 22 Oct 2026 07:47:02 -0400 X-Original-Message-ID: <20261022114702.GC28455@wooledge.org> X-Original-References: <de115df3-bf0d-4084-83bf-3c7d0acec9ba@vollmann.ch> <atnlXQk1XgfNq4BI@phare.normalesup.org>