Skip to content

Instantly share code, notes, and snippets.

@tiye
Created June 30, 2012 04:40
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save tiye/3022306 to your computer and use it in GitHub Desktop.
运行 aptitude 命令有 snmpd 出错..
root@testServer89:~# sudo aptitude remove nodejs npm
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
The following packages will be REMOVED:
libev-dev{u} nodejs nodejs-dev{u} npm rlwrap{u}
The following partially installed packages will be configured:
snmpd
0 packages upgraded, 0 newly installed, 5 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 17.2MB will be freed.
Do you want to continue? [Y/n/?] y
Writing extended state information... Done
(Reading database ... 194687 files and directories currently installed.)
Removing npm ...
Removing nodejs-dev ...
Removing libev-dev ...
Removing nodejs ...
Removing rlwrap ...
Processing triggers for man-db ...
Setting up snmpd (5.4.2.1~dfsg0ubuntu1-0ubuntu2.2) ...
make: Entering directory `/var/yp'
make[1]: Entering directory `/var/yp/nis.zjut.in'
Updating netid.byname...
make[1]: Leaving directory `/var/yp/nis.zjut.in'
make: Leaving directory `/var/yp'
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
Errors were encountered while processing:
snmpd
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up snmpd (5.4.2.1~dfsg0ubuntu1-0ubuntu2.2) ...
make: Entering directory `/var/yp'
make[1]: Entering directory `/var/yp/nis.zjut.in'
Updating netid.byname...
make[1]: Leaving directory `/var/yp/nis.zjut.in'
make: Leaving directory `/var/yp'
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
Errors were encountered while processing:
snmpd
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment