postfix.postinst fails due to missing update-inetd

Bug #73575 reported by Tom Metro
2
Affects Status Importance Assigned to Milestone
Baltix
Invalid
Undecided
Unassigned
postfix (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

During a dist. upgrade from edgy to feisty:

Setting up postfix (2.3.3-1build1) ...
/var/lib/dpkg/info/postfix.postinst: 176: update-inetd: not found
dpkg: error processing postfix (--configure):
 subprocess post-installation script returned error exit status 127
...
Errors were encountered while processing:
 postfix
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up postfix (2.3.3-1build1) ...
/var/lib/dpkg/info/postfix.postinst: 176: update-inetd: not found
dpkg: error processing postfix (--configure):
 subprocess post-installation script returned error exit status 127
Errors were encountered while processing:
 postfix

Indeed update-inetd is absent. There is a man page for it, but the script/program doesn't exist on my system.

Researching turns up this change log entry for netbase showing that update-inetd was removed from the netbase package:

 netbase (4.27) unstable; urgency=medium
  * Depend on inet-superserver instead of openbsd-inetd and tcpd.
  * update-inetd moved to its own package.
  * etc-services: added suucp (4013), ggz (5688). (Closes: #383993, #388446)
  -- Marco d'Itri <email address hidden> Sun, 1 Oct 2006 23:19:40 +0200

Additionally inet-superserver (netkit-inetd) was separated from netbase (a while back) and the dependency from netbase removed:

 netbase (4.27ubuntu1) feisty; urgency=low

  * Merge from debian unstable, remaining changes:
    - drop dependency on inet superserver
  -- Scott James Remnant <email address hidden> Mon, 27 Nov 2006 13:33:44 +0000

apparently resulting in a system with no dependency on inetd, and thus no need for update-inetd.

It seems postfix.postinst should be updated to skip that step if there is no superserver package installed, or more specifically, no update-inetd package.

Workaround:
Comment out or delete line 176 of /var/lib/dpkg/info/postfix.postinst, then run:
sudo dpkg --configure postfix

See related bug mentioning postfix's dependency on inetd:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=212759

Note: the original reporter indicated the bug was in package 'postfix'; however, that package was not published in Baltix.

Revision history for this message
Tom Metro (tmetro+ubuntu) wrote :

Wrong distribution.

Revision history for this message
Tom Metro (tmetro+ubuntu) wrote :

Reported under correct distribution in Bug #73577.

Changed in postfix:
status: Unconfirmed → Rejected
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.