๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #1332

Bug#1151264: tin: old tin package postinst maintainer script subprocess failed with exit status 1

#1332
From: Vincent Lefevre
Date: Mon, 19 Oct 2026 11:40
62 lines
4120 bytes
Control: retitle -1 tin: upgrade fails: missing exit status 0 after return in tin.postinst

root@disset:~# DEBCONF_DEBUG=developer dpkg --configure tin
Setting up tin (1:2.6.7~20260927-1) ...
debconf (developer): frontend started
debconf (developer): frontend running, package name is tin
debconf (developer): starting /var/lib/dpkg/info/tin.config configure 1:2.6.6-1
debconf (developer): <-- VERSION 2.0
debconf (developer): --> 0 2.0
debconf (developer): <-- BEGINBLOCK
debconf (developer): --> 0
debconf (developer): <-- SET shared/news/server news.lip.ens-lyon.fr
debconf (developer): --> 0 value set
debconf (developer): <-- INPUT medium shared/news/server
debconf (developer): --> 30 question skipped
debconf (developer): <-- ENDBLOCK
debconf (developer): --> 0
debconf (developer): <-- GO
debconf (developer): --> 0 ok
debconf (developer): starting /var/lib/dpkg/info/tin.postinst configure 1:2.6.6-1
debconf (developer): <-- GET shared/news/server
debconf (developer): --> 0 news.lip.ens-lyon.fr
dpkg: error processing package tin (--configure):
 old tin package postinst maintainer script subprocess failed with exit status 1

In tin.postinst:

  local current_name="$(cat /etc/news/server)"
  [ "$RET" != "$current_name" ] || return

which should give

  [ "news.lip.ens-lyon.fr" != "news.lip.ens-lyon.fr" ] || return

but

$ f() { [ "news.lip.ens-lyon.fr" != "news.lip.ens-lyon.fr" ] || return; } 
$ f
$ echo $?
1

while

$ f() { [ "news.lip.ens-lyon.fr" != "news.lip.ens-lyon.fr" ] || return 0; }
$ f
$ echo $?

0

https://chat.mistral.ai/work/c088fabe-6e87-4cd0-83f3-e8a95fcd9f8d
confirms that this is the cause of the failure.

Note also that

  [ "$RET" ] || return

has the same issue.

-- 
Vincent Lefรจvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)
Technical Details
Message-ID: <NPTSF-6wHs-9@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!newsfeed.pionier.net.pl!fu-berlin.de!bofh.it!news.nic.it!robomod
References: <NPSWC-6wbj-9@gated-at.bofh.it> <NPTpD-6wwE-3@gated-at.bofh.it> <NPSWC-6wbj-9@gated-at.bofh.it> <NPTpD-6wwE-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!3.eu.feeder.erje.net!feeder.erje.net!newsfeed.pionier.net.pl!fu-berlin.de!bofh.it!news.nic.it!robomod
From: Vincent Lefevre <vincent@vinc17.net>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1151264: tin: old tin package postinst maintainer script subprocess failed with exit status 1
Date: Mon, 19 Oct 2026 13:40:01 +0200
Message-ID: <NPTSF-6wHs-9@gated-at.bofh.it>
References: <NPSWC-6wbj-9@gated-at.bofh.it> <NPTpD-6wwE-3@gated-at.bofh.it> <NPSWC-6wbj-9@gated-at.bofh.it> <NPTpD-6wwE-3@gated-at.bofh.it>
X-Original-To: 1151264@bugs.debian.org
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Mon Oct 19 11:39:08 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.65
Reply-To: Vincent Lefevre <vincent@vinc17.net>, 1151264@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: md@linux.it
X-Debian-Pr-Message: followup 1151264
X-Debian-Pr-Package: tin
X-Debian-Pr-Source: tin
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
X-Mailer-Info: https://www.vinc17.net/mutt/
User-Agent: Mutt/2.4.2+43 (ecf9b675) vl-188789 (2026-09-06)
X-Greylist: delayed 459 seconds by postgrey-1.37 at buxtehude; Mon, 19 Oct 2026 11:37:30 UTC
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1997508
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 62
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Mon, 19 Oct 2026 13:29:47 +0200
X-Original-Message-ID: <20261019112947.GE2997@cventin.lip.ens-lyon.fr>
X-Original-References: <20261019102433.GA83999@disset.lip.ens-lyon.fr> <20261019105555.GA23877@disset.lip.ens-lyon.fr> <20261019102433.GA83999@disset.lip.ens-lyon.fr> <20261019105555.GA23877@disset.lip.ens-lyon.fr>