Bug#624148: asterisk-config: System goes down due to unattended-upgrades

Michael Vogt mvo at debian.org
Thu Apr 28 07:36:04 UTC 2011


On Mon, Apr 25, 2011 at 08:05:17PM -0500, John Goerzen wrote:
> Package: asterisk-config
> Version: 1:1.6.2.9-2+squeeze2
> Severity: grave
> Justification: renders package unusable

Thanks for your bugreport.
 
> I use unattended-upgrades to provide security updates.  This normally works fine,
> and although I expect that an upgrade might take down Asterisk for a few minutes,
> this took the system down and did not bring it back up.  I'm going to guess it was
> related to this:

The code in unattended-upgrades should catch conffile changes like
this, so this looks like you hit a bug in that detection. Or the
asterisk package is modifiying by some out-of-band mechanism like in a
maintainer script. That case is not handled by u-n and the failure
below is to be expected (the program could do better by providing a
default answer, but its hard to pick a good default here :/).

What version of unattended-upgrades did you use? The regular 0.62.2
from squeeze?

Thanks,
 Michael

> Setting up asterisk-config (1:1.6.2.9-2+squeeze2) ...
> 
> Configuration file `/etc/asterisk/sip.conf'
>  ==> Modified (by you or by a script) since installation.
>  ==> Package distributor has shipped an updated version.
>    What would you like to do about it ?  Your options are:
>     Y or I  : install the package maintainer's version
>     N or O  : keep your currently-installed version
>       D     : show the differences between the versions
>       Z     : start a shell to examine the situation
>  The default action is to keep your current version.
> *** sip.conf (Y/I/N/O/D/Z) [default=N] ? dpkg: error processing asterisk-config (--configure):
>  EOF on stdin at conffile prompt
> 
> I can't imagine why the shipped conffile would have had to change for a security update.
> 
> And, indeed:
> 
> dpkg: dependency problems prevent configuration of asterisk:
>  asterisk depends on asterisk-config (= 1:1.6.2.9-2+squeeze2) | asterisk-config-custom; however:
>   Package asterisk-config is not configured yet.
>   Package asterisk-config-custom is not installed.
> dpkg: error processing asterisk (--configure):
>  dependency problems - leaving unconfigured
> Setting up asterisk-doc (1:1.6.2.9-2+squeeze2) ...
> configured to not write apport reports
> Errors were encountered while processing:
>  asterisk-config
>  asterisk
> 
> 
> Unattended-upgrades log:
> Initial blacklisted packages: 
> Starting unattended upgrades script
> Allowed origins are: ["('Debian', 'stable')", "('Debian', 'squeeze-security')"]
> Packages that are upgraded: asterisk asterisk-config asterisk-doc asterisk-sounds-main
> Writing dpkg log to '/var/log/unattended-upgrades/unattended-upgrades-dpkg_2011-04-25_16:35:07.929825.log'
> Installing the upgrades failed!
> error message: 'E:Sub-process /usr/bin/dpkg returned an error code (1)'
> dpkg returned a error! See '/var/log/unattended-upgrades/unattended-upgrades-dpkg_2011-04-25_16:35:07.929825.log' for details
> 
> 
> -- System Information:
> Debian Release: 6.0.1
>   APT prefers stable
>   APT policy: (990, 'stable')
> Architecture: i386 (i686)
> 
> Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
> Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
> Shell: /bin/sh linked to /bin/bash
> 
> asterisk-config depends on no packages.
> 
> Versions of packages asterisk-config recommends:
> pn  asterisk                      <none>     (no description available)
> 
> asterisk-config suggests no packages.
> 
> -- no debconf information
> 
> 





More information about the Pkg-voip-maintainers mailing list