パッケージまたはパッケージをインストール/削除しようとすると、dovecot-manageievedでエラーが発生します。だから私は次の行でそれを削除しようとしています:
$ sudo apt-get purge dovecot-managesieved
reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
dovecot-managesieved dovecot-sieve
0 upgraded, 0 newly installed, 2 to remove and 54 not upgraded.
2 not fully installed or removed.
After this operation, 1,455 kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 150840 files and directories currently installed.)
Removing dovecot-managesieved ...
[....] Starting IMAP/POP3 mail server: dovecotError: bind(/var/spool/postfix/private/dovecot-lmtp) failed: No such file or directory
Error: bind(/var/spool/postfix/private/auth) failed: No such file or directory
Fatal: Failed to start listeners
failed!
invoke-rc.d: initscript dovecot, action "start" failed.
dpkg: error processing dovecot-managesieved (--remove):
subprocess installed post-removal script returned error exit status 1
Removing dovecot-sieve ...
[....] Starting IMAP/POP3 mail server: dovecotError: bind(/var/spool/postfix/private/dovecot-lmtp) failed: No such file or directory
Error: bind(/var/spool/postfix/private/auth) failed: No such file or directory
Fatal: Failed to start listeners
failed!
invoke-rc.d: initscript dovecot, action "start" failed.
dpkg: error processing dovecot-sieve (--remove):
subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
dovecot-managesieved
dovecot-sieve
E: Sub-process /usr/bin/dpkg returned an error code (1)
これはうまくいかず、削除する方法がわかりません。
答え1
これと関連があるようです。バグ #665487。を削除するには、一時的に名前を変更してdovecot-managesieved
ください/etc/init.d/dovecot
。
sudo mv /etc/init.d/dovecot{,.disabled}
sudo apt-get purge dovecot-managesieved
sudo mv /etc/init.d/dovecot{.disabled,}
dovecot
これにより、パッケージの削除中に再起動しようとするのを防ぐことができます。