Falha ao parar postfix.service: Unidade postfix.service não carregada

0

Quando tento remover postfix , recebo este erro:

Removing postfix (3.1.0-3) ...
Failed to stop postfix.service: Unit postfix.service not loaded.
invoke-rc.d: initscript postfix, action "stop" failed.
dpkg: error processing package postfix (--remove):
 subprocess installed pre-removal script returned error exit status 5
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Errors were encountered while processing:
 postfix
E: Sub-process /usr/bin/dpkg returned an error code (1)
    
por Omid 20.06.2016 / 09:56

1 resposta

0

O motivo foi porque /etc/init.d/postfix não existia.

Eu criei um arquivo /etc/init.d/postfix em branco e tornei-o executável usando sudo chmod +x /etc/init.d/postfix , então o problema foi resolvido.

    
por Omid 20.06.2016 / 10:52