Bug#453123: Upgrade fails if snmpd is running

Skip to first unread message

Marc Fargas

Nov 27, 2007, 11:50:11 AM11/27/07
Package: snmpd
Version: 5.4.1~dfsg-4
Severity: important

I just upgraded snmpd on a few servers to 5.4.1 (to get rid of the xen errors)
and all of them failed miserably on "Seeting up snmpd...."

Setting up snmpd (5.4.1~dfsg-4) ...
[... questions about config files ... ]

Installing new version of config file /etc/snmp/snmpd.conf ...
Starting network management services:invoke-rc.d: initscript snmpd, action "start" failed.
dpkg: error processing snmpd (--configure):
subprocess post-installation script returned error exit status 1

On all the boxes the problem was the same: snmpd was running when dpkg configured it.
I had to manually stop snmpd and dpkg --configure -a:

# /etc/init.d/snmpd stop
Stopping network management services: snmpd snmptrapd.
# dpkg --configure -a
Setting up snmpd (5.4.1~dfsg-4) ...
Starting network management services: snmpd.

Shouldn't the package itself stop snmpd before trying to start it? I think it happened with older
versions also but I'm now sure.


-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (900, 'testing'), (300, 'unstable'), (150, 'experimental'), (100, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-2-686 (SMP w/2 CPU cores)
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Reply all
Reply to author
0 new messages