
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)
Responder1
A razão foi porque /etc/init.d/postfix
não existia.
Criei um /etc/init.d/postfix
arquivo em branco e tornei-o executável usando sudo chmod +x /etc/init.d/postfix
, então o problema foi resolvido.
Responder2
Isso funcionou para mim:
Depois de criar um arquivo postfix, execute este comando:
sudo apt-get purge postfix
E então reinstale o postfix:
sudo apt-get --reinstall install postfix