[Pkg-net-snmp-devel] Bug#606784: snmpd: package fails to upgrade properly from lenny

Julien Cristau jcristau at debian.org
Sat Dec 18 22:01:22 UTC 2010


On Sat, Dec 18, 2010 at 21:38:57 +0000, Jonathan Wiltshire wrote:

> It's because of this part:
> 
> On Sat, Dec 11, 2010 at 06:48:34PM +0100, Lucas Nussbaum wrote:
> > > Preparing to replace snmpd 5.4.1~dfsg-12 (using .../snmpd_5.4.3~dfsg-1_amd64.deb) ...
> > > invoke-rc.d: policy-rc.d denied execution of stop.
> > > Unpacking replacement snmpd ...
> 
> resulting in:
> 
> > > Setting up snmpd (5.4.3~dfsg-1) ...
> > > Installing new version of config file /etc/snmp/snmpd.conf ...
> > > Installing new version of config file /etc/init.d/snmpd ...
> > > Installing new version of config file /etc/default/snmpd ...
> > > userdel: user snmp is currently logged in
> > > /usr/sbin/deluser: `/usr/sbin/userdel snmp' returned error code 8. Exiting.
> > > dpkg: error processing snmpd (--configure):
> > > subprocess installed post-installation script returned error exit status 1
> 
> and it occurs because the package was upgraded in a chroot, where services
> are not allowed to stop or start.
> 
the postinst does:

if [ "x$1" = xconfigure ]; then
        if [ ! `getent group snmp >/dev/null` ]; then
                 deluser --quiet --system snmp
        fi
        adduser --quiet --system --group --no-create-home --home /var/lib/snmp snmp
        chown -R snmp:snmp /var/lib/snmp
fi

Which seems pretty weird.  What is this trying to do?

Cheers,
Julien
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-net-snmp-devel/attachments/20101218/a5ec5622/attachment.pgp>


More information about the Pkg-net-snmp-devel mailing list