Jonathan Nieder
2011-Nov-10 06:48 UTC
Bug#561864: adduser sends output to STDOUT even with --quiet, causing debconf to fail on postinst script for snmpd
Hi, Dan Wallis wrote:> From what I can tell, it''s adduser sending some output to STDOUT which > is causing this postinst script to fail. It looks like the --quiet > flag isn''t being respected, and lines 29-33 of > /usr/share/debconf/confmodule are ineffective, or at least don''t seem > to do what their comments say they should.I see that this was fixed in sid; thanks! Now the question is what to do in stable. If I understand correctly, the underlying problem still exists in net-snmp. snmpd.postinst says: . /usr/share/debconf/confmodule db_version 2.0 #DEBHELPER# which looks pretty innocuous, except that #DEBHELPER# part expands to # Automatically added by dh_installinit if [ -x "/etc/init.d/snmpd" ]; then update-rc.d snmpd defaults >/dev/null invoke-rc.d snmpd start || exit $? fi # End automatically added section so that if I edit /etc/init.d/snmpd (which is, after all, a conffile) to include echo "hello, snmpd!" then that text gets passed to debconf. Yech. This might be a debconf bug, a debhelper bug, or a net-snmp bug; I''m not sure which. It doesn''t sound to me like an adduser bug, although fixing this minor adduser bug worked around it.
Jonathan Nieder
2011-Nov-11 06:37 UTC
[Adduser-devel] Bug#561864: adduser sends output to STDOUT even with --quiet, causing debconf to fail on postinst script for snmpd
severity 561864 minor quit Jonathan Nieder wrote:> Dan Wallis wrote:>> From what I can tell, it''s adduser sending some output to STDOUT which >> is causing this postinst script to fail.[...]> If I understand correctly, the underlying problem still exists in > net-snmp. snmpd.postinst says:The underlying problem seems to be being tracked separately --- see bug#626312. Thanks again for catching it.
Debian Bug Tracking System
2011-Nov-11 06:39 UTC
[Adduser-devel] Processed: Re: adduser sends output to STDOUT even with --quiet, causing debconf to fail on postinst script for snmpd
Processing commands for control at bugs.debian.org:> severity 561864 minorBug #561864 {Done: Stephen Gran <sgran at debian.org>} [adduser] snmpd: Fails to install if not using shadow passwords Severity set to ''minor'' from ''grave''> quitStopping processing here. Please contact me if you need assistance. -- 561864: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=561864 Debian Bug Tracking System Contact owner at bugs.debian.org with problems