Article View: linux.debian.user
Article #243Re: How to remove a package for which prerm fails
From: Nicolas George
Date: Thu, 22 Oct 2026 10:30
Date: Thu, 22 Oct 2026 10:30
26 lines
2896 bytes
2896 bytes
Hi. Detlef Vollmann (HE12026-10-22): > on an old system in a VM I did a 'apt autoremove' and removal > for a package failed. > So I tried 'dpkg -r --force-all hddtemp' and it failed with: > > old hddtemp package prerm maintainer script subprocess failed with exit > status 1 > > So I did a 'dpkg -P --force-all hddtemp' which according to the > man page shouldn't run the 'prerm' script, but it still failed > with the same message. > > Is there a package management tool that allows me to remove the > package anyways? > > 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. Regards, -- Nicolas George
Technical Details
Message-ID:
<NQYdz-7adz-1@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodReferences:
<NQXhv-79Iz-3@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.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Nicolas George <george@nsup.org> Newsgroups: linux.debian.user Subject: Re: How to remove a package for which prerm fails Date: Thu, 22 Oct 2026 12:30:01 +0200 Message-ID: <NQYdz-7adz-1@gated-at.bofh.it> References: <NQXhv-79Iz-3@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 10:29:00 2026 Old-Return-Path: <george@phare.normalesup.org> X-Amavis-Spam-Status: No, score=-4.048 tagged_above=-10000 required=5.3 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -4.7 X-Ens-Nef-Client: 129.199.129.80 ( name = phare.normalesup.org ) Authentication-Results: nef.ens.fr; dkim=pass reason="2048-bit key; unprotected key" header.d=nsup.org header.i=@nsup.org header.b=Rw3/c/YU; dkim-adsp=pass; dkim-atps=neutral Reply-To: debian-user@lists.debian.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (nef.ens.fr [129.199.96.32]); Thu, 22 Oct 2026 12:28:46 +0200 (CEST) X-Mailing-List: <debian-user@lists.debian.org> archive/latest/832551 List-ID: <debian-user.lists.debian.org> List-URL: <https://lists.debian.org/debian-user/> List-Archive: https://lists.debian.org/msgid-search/atnlXQk1XgfNq4BI@phare.normalesup.org Approved: robomod@news.nic.it Lines: 26 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Thu, 22 Oct 2026 12:28:45 +0200 X-Original-Message-ID: <atnlXQk1XgfNq4BI@phare.normalesup.org> X-Original-References: <de115df3-bf0d-4084-83bf-3c7d0acec9ba@vollmann.ch>