
제거하려고 하면 postfix
다음 오류가 발생합니다.
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)
답변1
이유는 /etc/init.d/postfix
존재하지 않았기 때문이다.
빈 파일을 만들고 /etc/init.d/postfix
를 사용하여 실행 가능하게 만든 sudo chmod +x /etc/init.d/postfix
다음 문제가 해결되었습니다.
답변2
이것은 나를 위해 일했습니다 :
postfix 파일을 생성한 후 다음 명령을 실행합니다.
sudo apt-get purge postfix
그런 다음 postfix를 다시 설치하십시오.
sudo apt-get --reinstall install postfix