Public bug reported: 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/debconf/confmodule +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/debconf/confmodule -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: mar...@ella:/var/lib/dpkg/info$ apt-cache policy snmpd snmpd: Installed: 5.4.2.1~dfsg0ubuntu1-0ubuntu2.1 Candidate: 5.4.2.1~dfsg0ubuntu1-0ubuntu2.1 Version table: *** 5.4.2.1~dfsg0ubuntu1-0ubuntu2.1 0 500 http://se.archive.ubuntu.com/ubuntu/ lucid-updates/main Packages 500 http://security.ubuntu.com/ubuntu/ lucid-security/main Packages 100 /var/lib/dpkg/status 5.4.2.1~dfsg0ubuntu1-0ubuntu2 0 500 http://se.archive.ubuntu.com/ubuntu/ lucid/main Packages ** Affects: net-snmp (Ubuntu) Importance: Undecided Status: New -- snmpd fails to upgrade https://bugs.launchpad.net/bugs/589056 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to net-snmp in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs