[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#280814: marked as done (postinst dies when installing apache2-common with no previous installation)



Your message dated Sun, 14 Nov 2004 09:12:22 +1000
with message-id <000301c4c9d6$439614b0$0400000a@0c3.net>
and subject line Closing this.
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 11 Nov 2004 20:52:56 +0000
>From nahu@softhome.net Thu Nov 11 12:52:56 2004
Return-path: <nahu@softhome.net>
Received: from master.debian.org [146.82.138.7] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1CSLw8-0003GJ-00; Thu, 11 Nov 2004 12:52:56 -0800
Received: from mza0ppp-39.uc.infovia.com.ar ([192.168.1.2]) [209.13.218.39] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1CSLw7-0000qg-00; Thu, 11 Nov 2004 14:52:56 -0600
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Nahuel Greco <nahu@softhome.net>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: postinst dies when installing apache2-common with no previous installation
Bcc: Nahuel Greco <nahu@softhome.net>
X-Mailer: reportbug 2.61
Date: Thu, 11 Nov 2004 17:41:29 -0300
Message-Id: <[🔎] E1CSLw7-0000qg-00@master.debian.org>
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_PACKAGE,
	OUR_MTA_MSGID autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

Package: apache2-common
Version: 2.0.52-2
Severity: grave
Justification: renders package unusable


If you dont have a previous apache2-common installation, postinst always
dies with a nonzero status, breaking dpkg installation process. This
happens because at line 16 of the postinst script, netstat is called
piping his output to grep to set the NO_AF_INET variable. The problem is
that if grep didnt match any line (the more common case for this), grep
returns a non-zero status. Because the script is running with sh -e
(beggining of the script), sh exists if a child process returns non-zero,
so the script dies when setting NO_AF_INET!!! This dont happen when you
are upgrading from a previous version because /etc/apache2/ports.conf
already exists and the if body isn't executed.

Maybe this problem is also present in other lines of the script, I
didn't a full check.

Note, I think this is also applicable to 2.0.52-3, but no to 2.0.52-1

---------------------------------------
Received: (at 280814-done) by bugs.debian.org; 13 Nov 2004 23:15:12 +0000
>From adconrad@0c3.net Sat Nov 13 15:15:12 2004
Return-path: <adconrad@0c3.net>
Received: from mail.cairns.net.au (cairns.net.au) [210.11.152.12] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1CT76t-0004hF-00; Sat, 13 Nov 2004 15:15:12 -0800
Received: from nosferatu (unverified [210.11.154.230]) 
	by cairns.net.au (SurgeMail 2.1c7) with ESMTP id 15344037 
	for <280814-done@bugs.debian.org>; Sun, 14 Nov 2004 09:15:07 +1000 AEST
From: "Adam Conrad" <adconrad@0c3.net>
To: <280814-done@bugs.debian.org>
Subject: Closing this.
Date: Sun, 14 Nov 2004 09:12:22 +1000
Message-ID: <000301c4c9d6$439614b0$0400000a@0c3.net>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook, Build 10.0.6626
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
Importance: Normal
X-Server: High Performance Mail Server - http://surgemail.com
Delivered-To: 280814-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-0.1 required=4.0 tests=BAYES_44 autolearn=no 
	version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

Fixed packages are now in testing.

... Adam



Reply to: