atftpd fails to install/upgrade if update-inetd needs to interact

Bug #1222009 reported by Malcolm Scott
22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
atftp (Ubuntu)
Confirmed
Undecided
Unassigned
rlinetd (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Setting up atftpd (0.7.git20120829-1) ...
*** WARNING: ucf was run from a maintainer script that uses debconf, but
             the script did not pass --debconf-ok to ucf. The maintainer
             script should be fixed to not stop debconf before calling ucf,
             and pass it this parameter. For now, ucf will revert to using
             old-style, non-debconf prompting. Ugh!

             Please inform the package maintainer about this problem.
Need debconf to interact
dpkg: error processing atftpd (--configure):
 subprocess installed post-installation script returned error exit status 2
No apport report written because MaxReports has already been reached
                                                                    Errors were encountered while processing:
 atftpd
E: Sub-process /usr/bin/dpkg returned an error code (1)

The invocation of ucf comes from rlinetd's update-inetd, called from atftpd.postinst, which needed to prompt me about edits to /etc/rlinetd.d/tftp_udp:

$ sudo /usr/share/debconf/frontend bash -ex /var/lib/dpkg/info/atftpd.postinst configure
(...)
+ BASEDIR=/var/lib/tftpboot
+ '[' '!' -d /var/lib/tftpboot ']'
+ '[' -e /etc/init.d/atftpd ']'
+ /etc/init.d/atftpd stop
+ '[' true = false ']'
++ echo '--tftpd-timeout 300 --retry-timeout 5 --mcast-port 1758 --mcast-addr 239.239.239.0-255 --mcast-ttl 2 --maxthread 100 --verbose=5 /var/lib/tftpboot'
++ tr -s ' '
+ INETOPTS='--tftpd-timeout 300 --retry-timeout 5 --mcast-port 1758 --mcast-addr 239.239.239.0-255 --mcast-ttl 2 --maxthread 100 --verbose=5 /var/lib/tftpboot'
+ update-inetd --group BOOT --add 'tftp dgram udp4 wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd --tftpd-timeout 300 --retry-timeout 5 --mcast-port 1758 --mcast-addr 239.239.239.0-255 --mcast-ttl 2 --maxthread 100 --verbose=5 /var/lib/tftpboot'
*** WARNING: ucf was run from a maintainer script that uses debconf, but
             the script did not pass --debconf-ok to ucf. The maintainer
             script should be fixed to not stop debconf before calling ucf,
             and pass it this parameter. For now, ucf will revert to using
             old-style, non-debconf prompting. Ugh!

             Please inform the package maintainer about this problem.
Need debconf to interact

ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: atftpd 0.7.git20120829-1
ProcVersionSignature: Ubuntu 3.2.0-52.78-generic 3.2.48
Uname: Linux 3.2.0-52-generic x86_64
ApportVersion: 2.9.2-0ubuntu8.3
Architecture: amd64
Date: Fri Sep 6 18:04:59 2013
MarkForUpload: True
ProcEnviron:
 TERM=screen-bce
 PATH=(custom, no user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
SourcePackage: atftp
UpgradeStatus: Upgraded to raring on 2013-09-06 (0 days ago)

Related branches

Revision history for this message
Malcolm Scott (malcscott) wrote :
Revision history for this message
Malcolm Scott (malcscott) wrote :

On second thought, this may be a rlinetd bug: perhaps update-inetd should call ucf with --debconf-ok, so that it can be used from maintainer scripts?

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package rlinetd - 0.9-1

---------------
rlinetd (0.9-1) unstable; urgency=low

  * New upstream version.
  * Remove both patches, as they are integrated into upstream version.
  * Pass --debconf-ok to ucf, but first check if debconf has not been stopped
    with a really ugly hack which involvs using timeout command to check if
    debconf can return its version within 15 seconds (closes: #665443,
    LP: #877453, #1222009).
  * Use --disable-silent-rules to unhide compiler command line.
  * Add support for cross-compiling.
  * Standards-Version: 3.9.5 (no changes).

 -- Robert Luberda <email address hidden> Sun, 17 Nov 2013 18:27:45 +0100

Changed in rlinetd (Ubuntu):
status: New → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in atftp (Ubuntu):
status: New → Confirmed
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.