[Pkg-net-snmp-devel] Bug#391203: Upgrading snmpd from 5.2.2-3 to 5.2.3-1 hangs in snmpd.postinst

James Ray j.ray at qmul.ac.uk
Tue Dec 12 11:42:39 CET 2006


Seeing the same problem as the above user here is my report bug output:

Subject: Upgrading to 5.2.3-4 causes defunct snmpd.postinst
Package: snmpd
Version: 5.2.3-4
Severity: normal

*** Please type your report below this line ***


-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-2-686-smp
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1)

Versions of packages snmpd depends on:
ii  adduser                      3.100       Add and remove users and groups
ii  debconf                      1.5.8       Debian configuration management sy
ii  libc6                        2.3.6.ds1-8 GNU C Library: Shared libraries
ii  libsensors3                  1:2.10.1-2  library to read temperature/voltag
ii  libsnmp9                     5.2.3-4     NET SNMP (Simple Network Managemen
ii  libwrap0                     7.6.dbs-11  Wietse Venema's TCP wrappers libra

snmpd recommends no packages.

-- debconf information:
  snmpd/upgradefrom36:
  snmpd/upgradefrom521:

I have made a edit to the snmpd.postinst script to add a set -x and I see the following:
Setting up snmpd (5.2.3-4) ...
+ '[' xconfigure = xconfigure ']'
+ adduser --quiet --system --no-create-home --home /var/lib/snmp snmp
+ chown -R snmp /var/lib/snmp
+ . /usr/share/debconf/confmodule
++ '[' '!' '' ']'
++ PERL_DL_NONLAZY=1
++ export PERL_DL_NONLAZY
++ '[' '' ']'
++ exec /usr/share/debconf/frontend /var/lib/dpkg/info/snmpd.postinst configure 5.2.3-1
+ '[' xconfigure = xconfigure ']'
+ adduser --quiet --system --no-create-home --home /var/lib/snmp snmp
+ chown -R snmp /var/lib/snmp
+ . /usr/share/debconf/confmodule
++ '[' '!' 1 ']'
++ '[' -z '' ']'
++ exec
++ '[' '' ']'
++ exec
++ DEBCONF_REDIR=1
++ export DEBCONF_REDIR
+ db_version 2.0
+ _db_cmd 'VERSION 2.0'
+ IFS=' '
+ printf '%s\n' 'VERSION 2.0'
+ IFS='
'
+ read -r _db_internal_line
+ RET=2.0
+ case ${_db_internal_line%%[   ]*} in
+ return 0
+ '[' -x /etc/init.d/snmpd ']'
+ update-rc.d snmpd defaults
++ which invoke-rc.d
+ '[' -x /usr/sbin/invoke-rc.d ']'
+ invoke-rc.d snmpd start
Starting network management services: snmpd snmptrapd.
+ exit 0

Which looks like the script is completing... but however it is hanging around:
jamesr at monitor:~$ ps -ef | grep 'pts/0'
jamesr   18071 18069  0 10:28 ?        00:00:00 sshd: jamesr at pts/0
jamesr   18072 18071  0 10:28 pts/0    00:00:00 -bash
root     20741 18072  2 10:34 pts/0    00:00:01 aptitude upgrade snmpd
root     20746 20741  0 10:34 pts/0    00:00:00 /usr/bin/dpkg --status-fd 8 --configure quagga snmpd snmptrapfmt
root     20789 20746  0 10:34 pts/0    00:00:00 /usr/bin/perl -w /usr/share/debconf/frontend /var/lib/dpkg/info/snmpd.postinst configure 5.2.3-1
root     20800 20789  0 10:34 pts/0    00:00:00 [snmpd.postinst] <defunct>

Because its a defunct process I cannot strace it and lsof shows nothing:
jamesr at monitor:~$ sudo strace -fF -p 20800
attach: ptrace(PTRACE_ATTACH, ...): Operation not permitted
jamesr at monitor:~$ sudo lsof -p 20800

Any further information I can provide let me know I will be happy to help.

-- 
James Ray.                          <j.ray at qmul.ac.uk>
Computing Services
Queen Mary, University of London




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