atftpd fails to install/upgrade if update-inetd needs to interact
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
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
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.
$ sudo /usr/share/
(...)
+ BASEDIR=
+ '[' '!' -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=
+ 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
Please inform the package maintainer about this problem.
Need debconf to interact
ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: atftpd 0.7.git20120829-1
ProcVersionSign
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)
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?