質問: postfixのインストールの問題を解決するにはどうすればよいですか? postfixに問題があります。再インストールできるように削除しようとすると:learner@juggernaut:~$ sudo apt-get remove postfix reading package lists... done building dependency tree reading state information... done the following extra packages will be installed: lsb-invalid-mta the following packages will be removed: postfix the following new packages will be installed: lsb-invalid-mta 0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded. 1 not fully installed or removed. need to get 0 b/5,106 b of archives. after this operation, 3,541 kb disk space will be freed. do you want to continue? [y/n] y dpkg: postfix: dependency problems, but removing anyway as you requested: lsb-core depends on lsb-invalid-mta (>= 4.1+debian11ubuntu6) | mail-transport-agent; however: package lsb-invalid-mta is not installed. package mail-transport-agent is not installed. package postfix which provides mail-transport-agent is to be removed. (reading database ... 228881 files and directories currently installed.) removing postfix (2.11.0-1ubuntu1) ... invoke-rc.d: unknown initscript, /etc/init.d/postfix not found. dpkg: error processing package postfix (--remove): subprocess installed pre-removal script returned error exit status 100 errors were encountered while processing: postfix e: sub-process /usr/bin/dpkg returned an error code (1) sudoaptの出力-パージ後置を取得learner@juggernaut:~$ sudo apt-get purge postfix [sudo] password for learner: reading package lists... done building dependency tree reading state information... done the following extra packages will be installed: lsb-invalid-mta the following packages will be removed: postfix* the following new packages will be installed: lsb-invalid-mta 0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded. 1 not fully installed or removed. need to get 0 b/5,106 b of archives. after this operation, 3,541 kb disk space will be freed. do you want to continue? [y/n] y dpkg: postfix: dependency problems, but removing anyway as you requested: lsb-core depends on lsb-invalid-mta (>= 4.1+debian11ubuntu6) | mail-transport-agent; however: package lsb-invalid-mta is not installed. package mail-transport-agent is not installed. package postfix which provides mail-transport-agent is to be removed. (reading database ... 228881 files and directories currently installed.) removing postfix (2.11.0-1ubuntu1) ... invoke-rc.d: unknown initscript, /etc/init.d/postfix not found. dpkg: error processing package postfix (--purge): subprocess installed pre-removal script returned error exit status 100 errors were encountered while processing: postfix e: sub-process /usr/bin/dpkg returned an error code (1) learner@juggernaut:~$ そして私がそれを再インストールしようとすると:learner@juggernaut:~$ sudo apt-get install postfix [sudo] password for learner: reading package lists... done building dependency tree reading state information... done postfix is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. after this operation, 0 b of additional disk space will be used. do you want to continue? [y/n] y setting up postfix (2.11.0-1ubuntu1) ... update-rc.d: /etc/init.d/postfix: file does not exist dpkg: error processing package postfix (--configure): subprocess installed post-installation script returned error exit status 1 processing triggers for libc-bin (2.19-0ubuntu6.6) ... errors were encountered while processing: postfix e: sub-process /usr/bin/dpkg returned an error code (1) learner@juggernaut:~$ インストール中にインターネットサイトを選択したことを覚えていますこれはmail.logですjan 27 20:09:33 juggernaut postfix/postdrop[3385]: warning: mail_queue_enter: create file maildrop/152326.3385: permission denied jan 27 20:09:43 juggernaut postfix/postdrop[3385]: warning: mail_queue_enter: create file maildrop/152587.3385: permission denied jan 27 20:09:53 juggernaut postfix/postdrop[3385]: warning: mail_queue_enter: create file maildrop/152915.3385: permission denied jan 27 20:10:03 juggernaut postfix/postdrop[3385]: warning: mail_queue_enter: create file maildrop/153202.3385: permission denied jan 27 20:10:13 juggernaut postfix/postdrop[3385]: warning: mail_queue_enter: create file maildrop/153447.3385: permission denied mail.errのこれらのエントリjan 27 19:57:10 juggernaut postfix[5929]: error: to submit mail, use the postfix sendmail command jan 27 19:57:10 juggernaut postfix[5929]: fatal: the postfix command is reserved for the superuser jan 27 19:57:29 juggernaut postfix/postfix-script[5936]: error: unknown command: '' jan 27 19:57:29 juggernaut postfix/postfix-script[5937]: fatal: usage: postfix start (or stop, reload, abort, flush, check, status, set-permissions, upgrade-configuration) jan 27 20:08:52 juggernaut postfix[3372]: error: to submit mail, use the postfix sendmail command jan 27 20:08:52 juggernaut postfix[3372]: fatal: the postfix command is reserved for the superuser jan 27 20:09:05 juggernaut postfix/postfix-script[3380]: error: unknown command: '' jan 27 20:09:05 juggernaut postfix/postfix-script[3381]: fatal: usage: postfix start (or stop, reload, abort, flush, check, status, set-permissions, upgrade-configuration) jan 27 20:09:13 juggernaut postfix[3382]: error: to submit mail, use the postfix sendmail command jan 27 20:09:13 juggernaut postfix[3382]: fatal: the postfix command is reserved for the superuser jan 27 20:17:26 juggernaut postfix[3701]: error: to submit mail, use the postfix sendmail command jan 27 20:17:26 juggernaut postfix[3701]: fatal: the postfix command is reserved for the superuser jan 27 20:18:53 juggernaut postfix[3864]: error: to submit mail, use the postfix sendmail command jan 27 20:18:53 juggernaut postfix[3864]: fatal: the postfix command is reserved for the superuser jan 29 14:19:27 juggernaut postfix/postfix-script[22221]: error: unknown command: '' jan 29 14:19:27 juggernaut postfix/postfix-script[22222]: fatal: usage: postfix start (or stop, reload, abort, flush, check, status, set-permissions, upgrade-configuration) jan 29 14:21:13 juggernaut postfix[22826]: error: to submit mail, use the postfix sendmail command jan 29 14:21:13 juggernaut postfix[22826]: fatal: the postfix command is reserved for the superuser jan 30 17:49:32 juggernaut postfix[9225]: error: to submit mail, use the postfix sendmail command jan 30 17:49:32 juggernaut postfix[9225]: fatal: the postfix command is reserved for the superuser jan 30 17:49:42 juggernaut postfix/postfix-script[9255]: error: unknown command: '' jan 30 17:49:42 juggernaut postfix/postfix-script[9256]: fatal: usage: postfix start (or stop, reload, abort, flush, check, status, set-permissions, upgrade-configuration)
回答: 以下を実行します。$ sudo touch /etc/init.d/postfix $ sudo apt-get remove postfix 何らかの理由で存在しない/etc/init.d/postfixのファイルを探しています。このファイルを与えると、アンインストールが完了する可能性があります