🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.user
Article #241

How to remove a package for which prerm fails

#241
From: Detlef Vollmann
Date: Thu, 22 Oct 2026 09:30
20 lines
2368 bytes
Hello,

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.

   Detlef
Technical Details
Message-ID: <NQXhv-79Iz-3@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.hispagatos.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.hispagatos.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Detlef Vollmann <dv@vollmann.ch>
Newsgroups: linux.debian.user
Subject: How to remove a package for which prerm fails
Date: Thu, 22 Oct 2026 11:30:01 +0200
Message-ID: <NQXhv-79Iz-3@gated-at.bofh.it>
X-Mailbox-Line: From debian-user-request@lists.debian.org  Thu Oct 22 09:20:45 2026
Old-Return-Path: <dv@vollmann.ch>
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: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .vollmann. - helo: .mxout021.mail.hostpoint. - helo-domain: .hostpoint.)  FROM/MX_MATCHES_NOT_HELO(DOMAIN)=0; rate: -3.5
X-Greylist: delayed 1388 seconds by postgrey-1.37 at bendel; Thu, 22 Oct 2026 09:20:17 UTC
X-Authenticated-Sender-ID: mail-all@vollmann.ch
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: en-US
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Mailing-List: <debian-user@lists.debian.org> archive/latest/832549
List-ID: <debian-user.lists.debian.org>
List-URL: <https://lists.debian.org/debian-user/>
List-Archive: https://lists.debian.org/msgid-search/de115df3-bf0d-4084-83bf-3c7d0acec9ba@vollmann.ch
Approved: robomod@news.nic.it
Lines: 20
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Thu, 22 Oct 2026 10:56:56 +0200
X-Original-Message-ID: <de115df3-bf0d-4084-83bf-3c7d0acec9ba@vollmann.ch>