Impossível processar upgrades devido a erro com snmpd

1

Execução do Ubuntu 14.04 LTS Server edition. Recentemente comecei a receber esses erros com o snmpd:

Setting up snmpd (5.7.2~dfsg-8.1ubuntu3.1) ...
update-rc.d: warning:  stop runlevel arguments (1) do not match snmpd Default-Stop values (0 1 6)
 * Starting network management services:                                                                                                          invoke-rc.d: initscript snmpd, action "start" failed.
dpkg: error processing package snmpd (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up libsvn1:amd64 (1.8.8-1ubuntu3.2) ...
Setting up subversion (1.8.8-1ubuntu3.2) ...
Processing triggers for libc-bin (2.19-0ubuntu6.6) ...
Errors were encountered while processing:
 snmpd
E: Sub-process /usr/bin/dpkg returned an error code (1)

Aqui está a saída da política do apt-cache snmpd:

root@maleficent:/home/dlanier# apt-cache policy snmpd
snmpd:
  Installed: 5.7.2~dfsg-8.1ubuntu3.1
  Candidate: 5.7.2~dfsg-8.1ubuntu3.1
  Version table:
 *** 5.7.2~dfsg-8.1ubuntu3.1 0
        500 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
        100 /var/lib/dpkg/status
     5.7.2~dfsg-8.1ubuntu3 0
        500 http://us.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
    
por Malchesador 24.08.2015 / 16:14

1 resposta

0

Eu tive exatamente o mesmo problema.

  1. sudo dpkg --purge snmp

    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following packages were automatically installed and are no longer required:
      libmysqlclient18 libperl5.18 libsnmp30 mysql-common
    Use 'apt-get autoremove' to remove them.
    The following packages will be REMOVED:
      snmpd*
    0 upgraded, 0 newly installed, 1 to remove and 3 not upgraded.
    1 not fully installed or removed.
    After this operation, 232 kB disk space will be freed.
    Do you want to continue? [Y/n] Y
    

    Whoops .... seu perl, mysql e o snmp lib.

  2. sudo apt-get purge snmpd

    Livre-se disso também. Não apenas os arquivos de configuração.

  3. Se você quiser se livrar das mensagens AUTOREMOVE e / ou realmente precisar dos pacotes, basta remover e reinstalar os pacotes.

    sudo apt-get autoremove

    Modifique como quiser:

    sudo apt-get install libperl5.18 libsnmp30 libmysqlclient18 mysql-common

por Tom Siwik 08.01.2016 / 10:31