can't remove the package

Bug #12995 reported by Debian Bug Importer
8
Affects Status Importance Assigned to Milestone
xinetd (Debian)
Fix Released
Unknown
xinetd (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Automatically imported from Debian bug report #295554 http://bugs.debian.org/295554

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Automatically imported from Debian bug report #295554 http://bugs.debian.org/295554

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Wed, 16 Feb 2005 18:22:10 +0100
From: Robert Millan <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: can't remove the package

Package: xinetd
Version: 1:2.3.13-2+cfg
Severity: serious

When purging xinetd:

--------------------
Removing xinetd ...
Note: all inetd services have been terminated.

WARNING: you don't have an init script for the original
inetd anymore! You may need to reinstall the netkit-inetd
package to get it back.

Removing `diversion of /etc/init.d/inetd to /etc/init.d/inetd.real by xinetd'
/var/lib/dpkg/info/xinetd.postrm: line 16: /etc/init.d/inetd: No such file or directory
dpkg: error processing xinetd (--purge):
 subprocess post-removal script returned error exit status 1
--------------------

line 16 attempts to run /etc/init.d/inetd, but as the warning indicates we're
not sure if that file exists. postrm should only attempt to run this script
if it exists.

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: kfreebsd-i386 (i686)
Kernel: GNU/kFreeBSD 5.3-3
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)

Versions of packages xinetd depends on:
ii libc0.1 2.3-1+kbsd.8 GNU C Library: Shared libraries an
ii libwrap0 7.6.dbs-6 Wietse Venema's TCP wrappers libra
ii netbase 4.20 Basic TCP/IP networking system

-- no debconf information

Revision history for this message
In , Thomas Seyrat (tomasera) wrote : Re: Bug#295554: can't remove the package

On February 16, 18:22 (+0100), Robert Millan wrote:
> Removing xinetd ...
> Note: all inetd services have been terminated.
>
> WARNING: you don't have an init script for the original
> inetd anymore! You may need to reinstall the netkit-inetd
> package to get it back.

  IIUC, this means that you manually removed /etc/init.d/inetd.real
  right ?

  Cheers,

--
Thomas Seyrat

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Fri, 18 Feb 2005 15:29:46 +0100
From: Thomas Seyrat <email address hidden>
To: Robert Millan <email address hidden>, <email address hidden>
Subject: Re: Bug#295554: can't remove the package

On February 16, 18:22 (+0100), Robert Millan wrote:
> Removing xinetd ...
> Note: all inetd services have been terminated.
>
> WARNING: you don't have an init script for the original
> inetd anymore! You may need to reinstall the netkit-inetd
> package to get it back.

  IIUC, this means that you manually removed /etc/init.d/inetd.real
  right ?

  Cheers,

--
Thomas Seyrat

Revision history for this message
In , Robert Millan (rmh) wrote :

On Fri, Feb 18, 2005 at 03:29:46PM +0100, Thomas Seyrat wrote:
> On February 16, 18:22 (+0100), Robert Millan wrote:
> > Removing xinetd ...
> > Note: all inetd services have been terminated.
> >
> > WARNING: you don't have an init script for the original
> > inetd anymore! You may need to reinstall the netkit-inetd
> > package to get it back.
>
> IIUC, this means that you manually removed /etc/init.d/inetd.real
> right ?

No. I was using inetutils-inetd, which provides netkit-inetd and installs
in /etc/init.d/inetutils-inetd.

This could have caused the problem. It is a separate bug, however. I can't
give more details on this one currently and am more concerned about the former
(failure in postrm) which is release-critical.

--
 .''`. Proudly running Debian GNU/kFreeBSD unstable/unreleased (on UFS2+S)
: :' :
`. `' http://www.debian.org/ports/kfreebsd-gnu
  `-

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Sat, 19 Feb 2005 14:02:07 +0100
From: Robert Millan <email address hidden>
To: Thomas Seyrat <email address hidden>
Cc: <email address hidden>
Subject: Re: Bug#295554: can't remove the package

On Fri, Feb 18, 2005 at 03:29:46PM +0100, Thomas Seyrat wrote:
> On February 16, 18:22 (+0100), Robert Millan wrote:
> > Removing xinetd ...
> > Note: all inetd services have been terminated.
> >
> > WARNING: you don't have an init script for the original
> > inetd anymore! You may need to reinstall the netkit-inetd
> > package to get it back.
>
> IIUC, this means that you manually removed /etc/init.d/inetd.real
> right ?

No. I was using inetutils-inetd, which provides netkit-inetd and installs
in /etc/init.d/inetutils-inetd.

This could have caused the problem. It is a separate bug, however. I can't
give more details on this one currently and am more concerned about the former
(failure in postrm) which is release-critical.

--
 .''`. Proudly running Debian GNU/kFreeBSD unstable/unreleased (on UFS2+S)
: :' :
`. `' http://www.debian.org/ports/kfreebsd-gnu
  `-

Revision history for this message
Matt Zimmerman (mdz) wrote :

Only seems to be an issue when mixed with universe packages, downgrading

Revision history for this message
In , Javier Fernández-Sanguino (jfs) wrote : Patch for this bug

tags 295554 patch
thanks

If I've understood the issue correctly the attached patch fixes this issue.

Regards

Javier

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Tue, 8 Mar 2005 15:47:41 +0100
From: Javier =?iso-8859-1?Q?Fern=E1ndez-Sanguino_Pe=F1a?= <email address hidden>
To: <email address hidden>, <email address hidden>
Subject: Patch for this bug

--/Uq4LBwYP4y1W6pO
Content-Type: multipart/mixed; boundary="H1spWtNR+x+ondvy"
Content-Disposition: inline

--H1spWtNR+x+ondvy
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

tags 295554 patch
thanks

If I've understood the issue correctly the attached patch fixes this issue.

Regards

Javier

--H1spWtNR+x+ondvy
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="xinetd.divert.diff"
Content-Transfer-Encoding: quoted-printable

diff -Nru xinetd-2.3.13.old/debian/changelog xinetd-2.3.13/debian/changelog
--- xinetd-2.3.13.old/debian/changelog 2005-03-08 15:42:26.000000000 +0100
+++ xinetd-2.3.13/debian/changelog 2005-03-08 15:43:29.000000000 +0100
@@ -1,3 +1,10 @@
+xinetd (1:2.3.13-3) unstable; urgency=3Dlow
+
+ * NMU
+ * Only act on dpkg --diversions if /etc/init.d/inetd exists (Closes: #29=
5554)
+
+ -- Javier Fernandez-Sanguino Pen~a <email address hidden> Tue, 8 Mar 2005 1=
5:42:45 +0100
+
 xinetd (1:2.3.13-2) unstable; urgency=3Dlow
=20
   * We now start xinetd with -stayalive by default to keep it
diff -Nru xinetd-2.3.13.old/debian/xinetd.postinst xinetd-2.3.13/debian/xin=
etd.postinst
--- xinetd-2.3.13.old/debian/xinetd.postinst 2005-03-08 15:42:26.000000000 =
+0100
+++ xinetd-2.3.13/debian/xinetd.postinst 2005-03-08 15:37:25.000000000 +0100
@@ -18,6 +18,7 @@
 fi
=20
 # divert inetd's init script
+if [ -e /etc/init.d/inetd ] ; then
 dpkg-divert --package xinetd --add --rename \
             --divert /etc/init.d/inetd.real /etc/init.d/inetd >&2
=20
@@ -35,4 +36,6 @@
 %EOF%
 chmod 755 /etc/init.d/inetd
=20
+fi
+
 #DEBHELPER#
diff -Nru xinetd-2.3.13.old/debian/xinetd.postrm xinetd-2.3.13/debian/xinet=
d.postrm
--- xinetd-2.3.13.old/debian/xinetd.postrm 2005-03-08 15:42:26.000000000 +0=
100
+++ xinetd-2.3.13/debian/xinetd.postrm 2005-03-08 15:39:27.000000000 +0100
@@ -13,7 +13,7 @@
     rm -f /etc/init.d/inetd
     dpkg-divert --package xinetd --remove --rename --divert \
                   /etc/init.d/inetd.real /etc/init.d/inetd
- /etc/init.d/inetd start
+ [ -x /etc/init.d/inetd] && /etc/init.d/inetd start
     ;;
   purge)
     rm -f /etc/xinetd.conf*

--H1spWtNR+x+ondvy--

--/Uq4LBwYP4y1W6pO
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFCLbsMi4sehJTrj0oRAki1AKCsHfyxlKe/wv+4YEDWBaC5OlY5qgCfTUDT
jPsvStXawNCBuIs43OnpzPI=
=VSNZ
-----END PGP SIGNATURE-----

--/Uq4LBwYP4y1W6pO--

Revision history for this message
In , Thomas Seyrat (tomasera) wrote : Bug#295554: fixed in xinetd 1:2.3.13-3

Source: xinetd
Source-Version: 1:2.3.13-3

We believe that the bug you reported is fixed in the latest version of
xinetd, which is due to be installed in the Debian FTP archive:

xinetd_2.3.13-3.diff.gz
  to pool/main/x/xinetd/xinetd_2.3.13-3.diff.gz
xinetd_2.3.13-3.dsc
  to pool/main/x/xinetd/xinetd_2.3.13-3.dsc
xinetd_2.3.13-3_powerpc.deb
  to pool/main/x/xinetd/xinetd_2.3.13-3_powerpc.deb

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to <email address hidden>,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Thomas Seyrat <email address hidden> (supplier of updated xinetd package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing <email address hidden>)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Thu, 10 Mar 2005 11:03:24 +0100
Source: xinetd
Binary: xinetd
Architecture: source powerpc
Version: 1:2.3.13-3
Distribution: unstable
Urgency: low
Maintainer: Thomas Seyrat <email address hidden>
Changed-By: Thomas Seyrat <email address hidden>
Description:
 xinetd - replacement for inetd with many enhancements
Closes: 167367 176464 287814 287821 294665 295554 297911
Changes:
 xinetd (1:2.3.13-3) unstable; urgency=low
 .
   * -stayalive option in /etc/default/xinetd instead of init script
     to make behaviour change easier. (closes: #294665)
   * Applied patch from Andreas Jochens <email address hidden> to build
     on amd64 with gcc-4.0 (closes: #297911)
   * Run /etc/init.d/inetd in postrm only if it exists (closes: #295554)
   * Fixed erroneous itox.8 man page (closes: #287814)
   * Included xinetd.org FAQ as /usr/share/doc/xinetd/xinetd.org-FAQ.html
   * Edited README.update-inetd (closes: #287821)
   * Applied patch to xconv.pl by Javier Fernández-Sanguino Peña to fix
     - what Amanda needs (closes: #167367)
       (http://www.amanda.org/docs/install.html)
     - numerically-specified services (closes: #176464)
     - TCP Wrappers
Files:
 c2075141791af837abccad39ca0ba684 579 net extra xinetd_2.3.13-3.dsc
 89aed9d2a6679652a32da04bddf1ae0b 18008 net extra xinetd_2.3.13-3.diff.gz
 41e4b42cb6e0a783392ba2828bb015fd 144578 net extra xinetd_2.3.13-3_powerpc.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCMCgvG7q+HrSg3okRAtqlAJ0eSahXpi62hJbtNw7zApXs6ZEmvACeJj5y
2qT8x76A3WpXnJn9ErbXSS0=
=0n3Y
-----END PGP SIGNATURE-----

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Thu, 10 Mar 2005 06:17:16 -0500
From: Thomas Seyrat <email address hidden>
To: <email address hidden>
Subject: Bug#295554: fixed in xinetd 1:2.3.13-3

Source: xinetd
Source-Version: 1:2.3.13-3

We believe that the bug you reported is fixed in the latest version of
xinetd, which is due to be installed in the Debian FTP archive:

xinetd_2.3.13-3.diff.gz
  to pool/main/x/xinetd/xinetd_2.3.13-3.diff.gz
xinetd_2.3.13-3.dsc
  to pool/main/x/xinetd/xinetd_2.3.13-3.dsc
xinetd_2.3.13-3_powerpc.deb
  to pool/main/x/xinetd/xinetd_2.3.13-3_powerpc.deb

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to <email address hidden>,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Thomas Seyrat <email address hidden> (supplier of updated xinetd package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing <email address hidden>)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Thu, 10 Mar 2005 11:03:24 +0100
Source: xinetd
Binary: xinetd
Architecture: source powerpc
Version: 1:2.3.13-3
Distribution: unstable
Urgency: low
Maintainer: Thomas Seyrat <email address hidden>
Changed-By: Thomas Seyrat <email address hidden>
Description:
 xinetd - replacement for inetd with many enhancements
Closes: 167367 176464 287814 287821 294665 295554 297911
Changes:
 xinetd (1:2.3.13-3) unstable; urgency=low
 .
   * -stayalive option in /etc/default/xinetd instead of init script
     to make behaviour change easier. (closes: #294665)
   * Applied patch from Andreas Jochens <email address hidden> to build
     on amd64 with gcc-4.0 (closes: #297911)
   * Run /etc/init.d/inetd in postrm only if it exists (closes: #295554)
   * Fixed erroneous itox.8 man page (closes: #287814)
   * Included xinetd.org FAQ as /usr/share/doc/xinetd/xinetd.org-FAQ.html
   * Edited README.update-inetd (closes: #287821)
   * Applied patch to xconv.pl by Javier Fernández-Sanguino Peña to fix
     - what Amanda needs (closes: #167367)
       (http://www.amanda.org/docs/install.html)
     - numerically-specified services (closes: #176464)
     - TCP Wrappers
Files:
 c2075141791af837abccad39ca0ba684 579 net extra xinetd_2.3.13-3.dsc
 89aed9d2a6679652a32da04bddf1ae0b 18008 net extra xinetd_2.3.13-3.diff.gz
 41e4b42cb6e0a783392ba2828bb015fd 144578 net extra xinetd_2.3.13-3_powerpc.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCMCgvG7q+HrSg3okRAtqlAJ0eSahXpi62hJbtNw7zApXs6ZEmvACeJj5y
2qT8x76A3WpXnJn9ErbXSS0=
=0n3Y
-----END PGP SIGNATURE-----

Revision history for this message
In , Adrian Bunk (bunk) wrote : still present in sarge

reopen 295554
tags 295554 +sarge
thanks

Revision history for this message
In , Steve Langasek (vorlon) wrote : tagging 295554, closing 295554

# Automatically generated email from bts, devscripts version 2.8.10
tags 295554 - sarge
close 295554

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Sat, 2 Apr 2005 03:36:42 +0200
From: Adrian Bunk <email address hidden>
To: <email address hidden>
Subject: still present in sarge

reopen 295554
tags 295554 +sarge
thanks

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Sat, 2 Apr 2005 20:10:57 -0800
From: Steve Langasek <email address hidden>
To: <email address hidden>
Subject: tagging 295554, closing 295554

# Automatically generated email from bts, devscripts version 2.8.10
tags 295554 - sarge
close 295554

Revision history for this message
Sebastien Bacher (seb128) wrote :

fixed with the current version.

Changed in xinetd:
status: Unknown → Fix Released
Revision history for this message
zig59 (zig-59) wrote :

This bug has reared it's head again in an upgrade from Feisty to Gutsy i386 desktop. I originally installed netkit-inetd through synaptic under Feisty and it was partly deleted (put into residual config in synaptic) during the upgrade. All attempts to completely remove the package are failing.

Synaptic shows: E: netkit-inetd: subprocess post-removal script returned error exit status 1

sudo dpkg --purge netkit-inetd gives:
Removing netkit-inetd ...
Purging configuration files for netkit-inetd ...
update-rc.d: /etc/init.d/inetd exists during rc.d purge (use -f to force)
dpkg: error processing netkit-inetd (--purge):
subprocess post-removal script returned error exit status 1
Errors were encountered while processing:
netkit-inetd

sudo apt-get --purge remove netkit-inetd gives:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package netkit-inetd is not installed, so not removed

sudo dpkg --remove --force-remove-reinstreq netkit-inetd gives:
dpkg - warning: ignoring request to remove netkit-inetd, only the config
files of which are on the system. Use --purge to remove them too.

sudo dpkg --purge --force-remove-reinstreq netkit-inetd gives:
Removing netkit-inetd ...
Purging configuration files for netkit-inetd ...
update-rc.d: /etc/init.d/inetd exists during rc.d purge (use -f to force)
dpkg: error processing netkit-inetd (--purge):
subprocess post-removal script returned error exit status 1
Errors were encountered while processing:
netkit-inetd

This same problem was reported in the debian lists in March this year: http://<email address hidden>/msg312088.html

Regards

zig59 (zig-59)
Changed in xinetd:
status: Fix Released → New
Revision history for this message
Marcus Asshauer (mcas) wrote :

Thank you for reporting this bug. Is this bug still present in ubuntu?

Changed in xinetd:
status: New → Incomplete
Revision history for this message
zig59 (zig-59) wrote :

Unless a fix has been released since I initially reported the bug then I would imagine the problem could still occur.

Unfortunately, I can't verify either way as I resorted to a clean install of Gutsy i386 desktop which, as there was no need to remove netkit-inetd, didn't suffer the problem.

As no other confirmations of the problem have been reported against this and as there is an imminent release of Hardy, and as neither Gutsy nor Hardy use netkit-inted, I would say close the bug.

Regards

Changed in xinetd:
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.