[Pkg-net-snmp-devel] Bug#453123: Upgrade fails if snmpd is running
Marc Fargas
telenieko at telenieko.com
Tue Nov 27 15:00:21 UTC 2007
Package: snmpd
Version: 5.4.1~dfsg-4
Severity: important
Hi,
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.
Cheers,
Marc
-- 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
More information about the Pkg-net-snmp-devel
mailing list