🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.user
Article #245

Re: How to remove a package for which prerm fails

#245
From: tomas
Date: Thu, 22 Oct 2026 12:00
50 lines
2953 bytes
--ML5g2x+ZYMozgHac
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Oct 22, 2026 at 12:28:45PM +0200, Nicolas George wrote:
> Hi.
>=20
> Detlef Vollmann (HE12026-10-22):

[...]

> > 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.
>=20
> Start by looking at the prerm script and find out WHY it fails.

This.

As a last ditch, your prerm script is in

  /var/lib/dpkg/info/<your-package>.prerm

So you can "just remove it" or insert some "exit 0" at an appropriate
place.

*BUT*

as Nicolas says, perhaps the script is trying to do something useful
and can't, for some reason. So understanding that might improve your
installation's integrity and longevity ;-)

Plus, you might discover a bug in the package, who knows.

Cheers
--=20
t

--ML5g2x+ZYMozgHac
Content-Type: application/pgp-signature; name="signature.asc"

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

iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCatn5EAAKCRAFyCz1etHa
RrzKAJoCSM6KRu+T5UTyeXLnCXN8krfbiQCfRZuHQ48nr3O1j73N3b2O1VWb4MY=
=T9lO
-----END PGP SIGNATURE-----

--ML5g2x+ZYMozgHac--
Technical Details
Message-ID: <NQZCG-7aUQ-9@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!robomod
References: <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: <tomas@tuxteam.de>
Newsgroups: linux.debian.user
Subject: Re: How to remove a package for which prerm fails
Date: Thu, 22 Oct 2026 14:00:02 +0200
Message-ID: <NQZCG-7aUQ-9@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:53:10 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: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 CL_IP_EQ_FROM_MX=-3.1; rate: -4.6
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="ML5g2x+ZYMozgHac"
Content-Disposition: inline
X-Mailing-List: <debian-user@lists.debian.org> archive/latest/832553
List-ID: <debian-user.lists.debian.org>
List-URL: <https://lists.debian.org/debian-user/>
List-Archive: https://lists.debian.org/msgid-search/atn5FpHane6ouSqu@tuxteam.de
Approved: robomod@news.nic.it
Lines: 50
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Thu, 22 Oct 2026 13:52:54 +0200
X-Original-Message-ID: <atn5FpHane6ouSqu@tuxteam.de>
X-Original-References: <de115df3-bf0d-4084-83bf-3c7d0acec9ba@vollmann.ch>
 <atnlXQk1XgfNq4BI@phare.normalesup.org>