🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.user
Article #249

Re: How to remove a package for which prerm fails

#249
From: tomas
Date: Thu, 22 Oct 2026 13:20
43 lines
3219 bytes
--s6JqdeLDp01jybHE
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Oct 22, 2026 at 02:59:41PM +0200, Detlef Vollmann wrote:

[...]

> Well, I know exactly why it fails and how to fix it.
> The prerm script calls 'invoke-rc.d' and these days it only
> uses systemd, but for this (very old) package there only exists
> an init.d script.
> So the fix is to provide a no-op hddparm.service.
>=20
> But my question was about a debian package management tool
> that I can tell to ignore the return value of the prerm script.

I think this doesn't exist. Paradoxically, I think that makes sense:
a failure in a {pre,post}-{install,remove} script indicates an
exceptional situation the packagers haven't taken in account, thus
one they could't provide for; thus the intervention of a sysadmin
with knowledge seems appropriate.

A force argument for that seems like a dangerous trap. Better having
folks come here, as you did (I myself did, a while back :-)

Cheers
--=20
t

--s6JqdeLDp01jybHE
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCatoL4AAKCRAFyCz1etHa
RilwAJ9l4QfJUrZnzOSd6AFW44NlNvtXXACfX1Q2YCSqAQw/L8mtKEMn1i9450M=
=ZmpA
-----END PGP SIGNATURE-----

--s6JqdeLDp01jybHE--
Technical Details
Message-ID: <NR0S5-7bIl-5@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
References: <NQXhv-79Iz-3@gated-at.bofh.it> <NQYdz-7adz-1@gated-at.bofh.it> <NR0Iq-7bEo-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.hispagatos.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: <tomas@tuxteam.de>
Newsgroups: linux.debian.user
Subject: Re: How to remove a package for which prerm fails
Date: Thu, 22 Oct 2026 15:20:01 +0200
Message-ID: <NR0S5-7bIl-5@gated-at.bofh.it>
References: <NQXhv-79Iz-3@gated-at.bofh.it> <NQYdz-7adz-1@gated-at.bofh.it> <NR0Iq-7bEo-1@gated-at.bofh.it>
X-Original-To: Detlef Vollmann <dv@vollmann.ch>
X-Mailbox-Line: From debian-user-request@lists.debian.org  Thu Oct 22 13:13:24 2026
Old-Return-Path: <tomas@tuxteam.de>
X-Amavis-Spam-Status: No, score=-2.1 tagged_above=-10000 required=5.3
 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
 DKIM_VALID_EF=-0.1] autolearn=ham autolearn_force=no
X-Policyd-Weight: using cached result; rate: -4.6
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="s6JqdeLDp01jybHE"
Content-Disposition: inline
X-Mailing-List: <debian-user@lists.debian.org> archive/latest/832557
List-ID: <debian-user.lists.debian.org>
List-URL: <https://lists.debian.org/debian-user/>
List-Archive: https://lists.debian.org/msgid-search/atoL5krynHNRMwCp@tuxteam.de
Approved: robomod@news.nic.it
Lines: 43
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Cc: debian-user@lists.debian.org
X-Original-Date: Thu, 22 Oct 2026 15:13:10 +0200
X-Original-Message-ID: <atoL5krynHNRMwCp@tuxteam.de>
X-Original-References: <de115df3-bf0d-4084-83bf-3c7d0acec9ba@vollmann.ch>
 <atnlXQk1XgfNq4BI@phare.normalesup.org>
 <9cf24ec2-898b-4e17-9ca4-4ab2ae834937@vollmann.ch>