snmpd fails to upgrade
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
net-snmp (Ubuntu) |
Fix Released
|
High
|
Dustin Kirkland |
Bug Description
When upgrading snmpd, I get the following error:
dpkg: error processing snmpd (--configure):
subprocess installed post-installation script returned error exit status 128
Errors were encountered while processing:
snmpd
I had the same problem with the previous upgrade of snmpd and I was able to fix it by changing the snmpd.postinst file. I moved the two lines for confmodule to the beginning of the file, see patch below.
Now it works.
//Martin
-------
--- snmpd.postinst.org 2010-04-25 21:48:18.000000000 +0200
+++ snmpd.postinst 2010-06-03 09:26:52.000000000 +0200
@@ -2,6 +2,9 @@
set -e
+. /usr/share/
+db_version 2.0
+
if [ "x$1" = xconfigure ]; then
if [ ! `getent group snmp >/dev/null` ]; then
deluser --quiet --system snmp
@@ -15,9 +18,6 @@
rm -f /etc/rc0.d/K20snmpd /etc/rc6.d/K20snmpd
fi
-. /usr/share/
-db_version 2.0
-
# Automatically added by dh_installinit
if [ -x "/etc/init.d/snmpd" ]; then
update-rc.d snmpd start 20 2 3 4 5 . stop 20 1 . >/dev/null
-------
System:
Description: Ubuntu 10.04 LTS
Release: 10.04
Package:
martin@
snmpd:
Installed: 5.4.2.1~
Candidate: 5.4.2.1~
Version table:
*** 5.4.2.1~
500 http://
500 http://
100 /var/lib/
5.
500 http://
Changed in net-snmp (Ubuntu): | |
importance: | Undecided → High |
status: | Confirmed → In Progress |
assignee: | nobody → Dustin Kirkland (kirkland) |
Changed in net-snmp (Ubuntu): | |
status: | In Progress → Fix Committed |
I've run into this problem and applied the change as a workaround -- and it allowed the installation to succeed.