无法删除 dovecot-managesieved

无法删除 dovecot-managesieved

当我想安装/删除或任何包时,我从 dovecot-managesieved 收到错误。所以我尝试用这一行删除它:

$ 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这应该可以避免在删除程序包期间尝试重新启动。

相关内容