package snmpd 5.4.2.1~dfsg0ubuntu1-0ubuntu2 failed to install/upgrade:

Bug #582887 reported by Kevin Sonney
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
net-snmp (Ubuntu)
Incomplete
Low
Unassigned

Bug Description

I was using the update manage to do the upgrade from Karmic to Lucid, and the script was unable to upgrade my snmp install, as noted in the attachment. No further errors displayed, except "failed to upgrade"

ProblemType: Package
DistroRelease: Ubuntu 10.04
Package: snmpd 5.4.2.1~dfsg0ubuntu1-0ubuntu2
ProcVersionSignature: Ubuntu 2.6.31-21.59-generic
Uname: Linux 2.6.31-21-generic i686
Architecture: i386
Date: Wed May 19 11:04:08 2010
ErrorMessage:
 ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
SNMPVersion:
 NET-SNMP version: 5.4.2.1
 Web: http://www.net-snmp.org/
 Email: <email address hidden>
SourcePackage: net-snmp
SyslogSnmpd:
 May 19 10:51:52 loki snmpd[10796]: Received TERM or STOP signal... shutting down...
 May 19 10:55:08 loki snmpd[27658]: error finding row index in _ifXTable_container_row_restore
 May 19 10:55:08 loki snmpd[27658]: NET-SNMP version 5.4.2.1
 May 19 11:05:37 loki snmpd[27658]: IfIndex of an interface changed.
SyslogSnmptrapd:

Title: package snmpd 5.4.2.1~dfsg0ubuntu1-0ubuntu2 failed to install/upgrade:

Revision history for this message
Kevin Sonney (kevin-sonney) wrote :
Revision history for this message
Thierry Carrez (ttx) wrote :

Log snippet:

Setting up snmpd (5.4.2.1~dfsg0ubuntu1-0ubuntu2) ...
Installing new version of config file /etc/default/snmpd ...
Installing new version of config file /etc/snmp/snmpd.conf ...
Installing new version of config file /etc/init.d/snmpd ...
userdel: user snmp is currently logged in
/usr/sbin/deluser: `/usr/sbin/userdel snmp' returned error code 8. Exiting.
dpkg: error processing snmpd (--configure):
 subprocess installed post-installation script returned error exit status 1

Is anyone logged in your system with user snmp ? If not, does reinstalling snmpd now work ?

Changed in net-snmp (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Kevin Sonney (kevin-sonney) wrote :

This happened during a live upgrade - that is, with the GUI upgrade tool included in 9. After rebooting into 10, I was able to successfully upgrade the package.

Since snmpd was running at the time of upgrade, it was logged in as user snmp. Does the upgrade script in this case check to see if the daemon is running? The expectation being if it needs to delete and recreate the snmp user, it should shut down any running snmp services before executing changes.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.