package snmpd 5.7.3+dfsg-1ubuntu4 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Bug #1713194 reported by vivek sanagari

This bug report was converted into a question: question #656995: package snmpd 5.7.3+dfsg-1ubuntu4 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1.

12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
net-snmp (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Both the below commands are showing the problem attached below.. plzzzzzzzzzzzzzzz help..

************************************************************************************
vivek@vivek-VPCCB45FN:~$ sudo apt-get install snmp-mibs-downloader
[sudo] password for vivek:
Reading package lists... Done
Building dependency tree
Reading state information... Done
snmp-mibs-downloader is already the newest version (1.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up snmpd (5.7.3+dfsg-1ubuntu4) ...
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
update-rc.d: warning: stop runlevel arguments (1) do not match snmpd Default-Stop values (0 1 6)
Job for snmpd.service failed because the control process exited with error code. See "systemctl status snmpd.service" and "journalctl -xe" for details.
invoke-rc.d: initscript snmpd, action "start" failed.
● snmpd.service - LSB: SNMP agents
   Loaded: loaded (/etc/init.d/snmpd; bad; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sat 2017-08-26 05:48:00 CEST; 5ms ago
     Docs: man:systemd-sysv-generator(8)
  Process: 6220 ExecStart=/etc/init.d/snmpd start (code=exited, status=127)

Aug 26 05:47:59 vivek-VPCCB45FN systemd[1]: Starting LSB: SNMP agents...
Aug 26 05:48:00 vivek-VPCCB45FN snmpd[6220]: * Starting SNMP services:
Aug 26 05:48:00 vivek-VPCCB45FN snmpd[6220]: /usr/sbin/snmpd: symbol lookup error: /usr/sbin/snmpd: undefined symbol: smux_listen_sd
Aug 26 05:48:00 vivek-VPCCB45FN systemd[1]: snmpd.service: Control process exited, code=exited status=127
Aug 26 05:48:00 vivek-VPCCB45FN systemd[1]: Failed to start LSB: SNMP agents.
Aug 26 05:48:00 vivek-VPCCB45FN systemd[1]: snmpd.service: Unit entered failed state.
Aug 26 05:48:00 vivek-VPCCB45FN systemd[1]: snmpd.service: Failed with result 'exit-code'.
dpkg: error processing package snmpd (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 snmpd
E: Sub-process /usr/bin/dpkg returned an error code (1)

**********************************************************************************

vivek@vivek-VPCCB45FN:~$ sudo apt-get install snmpd
Reading package lists... Done
Building dependency tree
Reading state information... Done
snmpd is already the newest version (5.7.3+dfsg-1ubuntu4).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up snmpd (5.7.3+dfsg-1ubuntu4) ...
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
update-rc.d: warning: stop runlevel arguments (1) do not match snmpd Default-Stop values (0 1 6)
Job for snmpd.service failed because the control process exited with error code. See "systemctl status snmpd.service" and "journalctl -xe" for details.
invoke-rc.d: initscript snmpd, action "start" failed.
● snmpd.service - LSB: SNMP agents
   Loaded: loaded (/etc/init.d/snmpd; bad; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sat 2017-08-26 05:48:45 CEST; 5ms ago
     Docs: man:systemd-sysv-generator(8)
  Process: 6331 ExecStart=/etc/init.d/snmpd start (code=exited, status=127)

Aug 26 05:48:45 vivek-VPCCB45FN systemd[1]: Starting LSB: SNMP agents...
Aug 26 05:48:45 vivek-VPCCB45FN snmpd[6331]: * Starting SNMP services:
Aug 26 05:48:45 vivek-VPCCB45FN snmpd[6331]: /usr/sbin/snmpd: symbol lookup error: /usr/sbin/snmpd: undefined symbol: smux_listen_sd
Aug 26 05:48:45 vivek-VPCCB45FN systemd[1]: snmpd.service: Control process exited, code=exited status=127
Aug 26 05:48:45 vivek-VPCCB45FN systemd[1]: Failed to start LSB: SNMP agents.
Aug 26 05:48:45 vivek-VPCCB45FN systemd[1]: snmpd.service: Unit entered failed state.
Aug 26 05:48:45 vivek-VPCCB45FN systemd[1]: snmpd.service: Failed with result 'exit-code'.
dpkg: error processing package snmpd (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 snmpd
E: Sub-process /usr/bin/dpkg returned an error code (1)
*****************************************************************************************

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: snmpd 5.7.3+dfsg-1ubuntu4
ProcVersionSignature: Ubuntu 4.4.0-92.115-generic 4.4.76
Uname: Linux 4.4.0-92-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.10
AptOrdering:
 snmpd: Install
 snmpd: Configure
 NULL: ConfigurePending
Architecture: amd64
Date: Sat Aug 26 04:25:24 2017
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationDate: Installed on 2016-11-14 (285 days ago)
InstallationMedia: Ubuntu-GNOME 16.04.1 LTS "Xenial Xerus" - Release amd64 (20160720)
RelatedPackageVersions:
 dpkg 1.18.4ubuntu1.2
 apt 1.2.24
SNMPVersion: Error: command ['/usr/sbin/snmpd', '-v'] failed with exit code 127: /usr/sbin/snmpd: symbol lookup error: /usr/sbin/snmpd: undefined symbol: smux_listen_sd
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: No upgrade log present (probably fresh install)

Revision history for this message
vivek sanagari (jithendra-vivek) wrote :
tags: removed: need-duplicate-check
Revision history for this message
vivek sanagari (jithendra-vivek) wrote :

vivek@vivek-VPCCB45FN:~$ sudo apt-get install snmp-mibs-downloader
vivek@vivek-VPCCB45FN:~$ sudo apt-get install snmpd

I AM TRING TO START SNMPD USING THE ABOVE COMMANDS AND BEING LEFT WITH THE BELOW ERROR..
WHAT IS THE PROBLEM???
HOW CAN I SOLVE THIS???

PLZZZ HELP..
THANK U IN ADVANCE..

Setting up snmpd (5.7.3+dfsg-1ubuntu4) ...
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
update-rc.d: warning: stop runlevel arguments (1) do not match snmpd Default-Stop values (0 1 6)
Job for snmpd.service failed because the control process exited with error code. See "systemctl status snmpd.service" and "journalctl -xe" for details.
invoke-rc.d: initscript snmpd, action "start" failed.
● snmpd.service - LSB: SNMP agents
   Loaded: loaded (/etc/init.d/snmpd; bad; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sat 2017-08-26 05:48:45 CEST; 5ms ago
     Docs: man:systemd-sysv-generator(8)
  Process: 6331 ExecStart=/etc/init.d/snmpd start (code=exited, status=127)

Aug 26 05:48:45 vivek-VPCCB45FN systemd[1]: Starting LSB: SNMP agents...
Aug 26 05:48:45 vivek-VPCCB45FN snmpd[6331]: * Starting SNMP services:
Aug 26 05:48:45 vivek-VPCCB45FN snmpd[6331]: /usr/sbin/snmpd: symbol lookup error: /usr/sbin/snmpd: undefined symbol: smux_listen_sd
Aug 26 05:48:45 vivek-VPCCB45FN systemd[1]: snmpd.service: Control process exited, code=exited status=127
Aug 26 05:48:45 vivek-VPCCB45FN systemd[1]: Failed to start LSB: SNMP agents.
Aug 26 05:48:45 vivek-VPCCB45FN systemd[1]: snmpd.service: Unit entered failed state.
Aug 26 05:48:45 vivek-VPCCB45FN systemd[1]: snmpd.service: Failed with result 'exit-code'.
dpkg: error processing package snmpd (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 snmpd
E: Sub-process /usr/bin/dpkg returned an error code (1)

Changed in net-snmp (Ubuntu):
status: New → Invalid
Revision history for this message
Karthik (kekanath) wrote :

i just surfer in google and gor the solution.

Before the problem araised, the net-snmp-5.7.3, snmp-mibs-downloader and snmpd were already downloaded by me.
At this point of time, the libraries which will be used by snmpd are installed at two locations "/usr/lib/x86_64-linux-gnu/" and "/usr/local/lib". when I tried to start the snmpd, as the libraries were at two locations, snmpd service is confused which location of libraries to use.. Thus I have to remove the oldest libraries installed among them to make it work.

To check if you have the libraries at two locations use "find /usr/ -name libnetsnmp*" command on terminal.
If you find 'libnetsnmp-' files on both the above mentioned locations,
remove the oldest libs (in my case) using: "sudo rm /usr/local/lib/libnetsnmp*"
This will solve the problem of snmpd to start.

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.