package snmpd 5.7.3 failed to install: subprocess installed post-installation script returned error exit status 1

Bug #1658803 reported by quazar
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
net-snmp (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Was using synaptic package manager 0.83 on Ubuntu 16.04.1
Was installing snmpd 5.7.3+dfsg-1ubuntu4

journalctl shows these lines for snmp:

Jan 23 16:03:54 vti-lab3 systemd[1]: Starting LSB: SNMP agents...
-- Subject: Unit snmpd.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit snmpd.service has begun starting up.
Jan 23 16:03:54 vti-lab3 snmpd[7938]: * Starting SNMP services:
Jan 23 16:03:54 vti-lab3 snmpd[7946]: Created directory: /var/lib/snmp/mib_indexes
Jan 23 16:03:55 vti-lab3 snmpd[7946]: /etc/snmp/snmpd.conf: line 145: Warning: Unknown token: defaultMonitors.
Jan 23 16:03:55 vti-lab3 snmpd[7946]: /etc/snmp/snmpd.conf: line 147: Warning: Unknown token: linkUpDownNotifications.
Jan 23 16:03:55 vti-lab3 snmpd[7946]: Turning on AgentX master support.
Jan 23 16:03:55 vti-lab3 snmpd[7946]: Error opening specified endpoint "udp:127.0.0.1:161"
Jan 23 16:03:55 vti-lab3 snmpd[7946]: Server Exiting with code 1
Jan 23 16:03:55 vti-lab3 systemd[1]: snmpd.service: Control process exited, code=exited status=1
Jan 23 16:03:55 vti-lab3 systemd[1]: Failed to start LSB: SNMP agents.
-- Subject: Unit snmpd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit snmpd.service has failed.
--
-- The result is failed.

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: snmpd 5.7.3+dfsg-1ubuntu4
ProcVersionSignature: Ubuntu 4.4.0-59.80-generic 4.4.35
Uname: Linux 4.4.0-59-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.4
Architecture: amd64
Date: Mon Jan 23 16:03:55 2017
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationDate: Installed on 2016-04-01 (297 days ago)
InstallationMedia: Ubuntu 12.04.1 LTS "Precise Pangolin" - Release amd64 (20120823.1)
RelatedPackageVersions:
 dpkg 1.18.4ubuntu1.1
 apt 1.2.18
SNMPVersion:
 NET-SNMP version: 5.7.3
 Web: http://www.net-snmp.org/
 Email: <email address hidden>
SourcePackage: net-snmp
SyslogSnmptrapd:

Title: package snmpd 5.7.3+dfsg-1ubuntu4 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: Upgraded to xenial on 2016-09-06 (139 days ago)

Revision history for this message
quazar (jnelson-tech) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Joshua Powers (powersj) wrote :

From log:

Jan 23 16:03:55 vti-lab3 snmpd[7946]: /etc/snmp/snmpd.conf: line 145: Warning: Unknown token: defaultMonitors.
Jan 23 16:03:55 vti-lab3 snmpd[7946]: /etc/snmp/snmpd.conf: line 147: Warning: Unknown token: linkUpDownNotifications.

Jan 23 16:03:55 vti-lab3 snmpd[7946]: Error opening specified endpoint "udp:127.0.0.1:161"
Jan 23 16:03:55 vti-lab3 snmpd[7946]: Server Exiting with code 1

Revision history for this message
Joshua Powers (powersj) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better.

Since there isn't enough information in your report to differentiate between a local configuration problem and a bug in Ubuntu, I'm marking this bug as Incomplete. There are a large number of threads on forums about configuring snmpd on Ubuntu. A large number of them point to invalid configurations that cause issues and the fact that there are messages about unknown tokens in your file seem to indicate that there may be issues.

If indeed this is a local configuration problem, you can find pointers to get help for this sort of problem here: http://www.ubuntu.com/support/community

Or if you believe that this is really a bug, then you may find it helpful to read "How to report bugs effectively" http://www.chiark.greenend.org.uk/~sgtatham/bugs.html. We'd be grateful if you would then provide a more complete description of the problem, explain why you believe this is a bug in Ubuntu rather than a problem specific to your system, and then change the bug status back to New.

Changed in net-snmp (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for net-snmp (Ubuntu) because there has been no activity for 60 days.]

Changed in net-snmp (Ubuntu):
status: Incomplete → Expired
Changed in net-snmp (Ubuntu):
status: Expired → Fix Released
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.