Dovecot 安装错误 - 无法创建常规文件

Dovecot 安装错误 - 无法创建常规文件

因此我尝试安装 dovecot-common、dovecot-imapd 和 dovecot-pop3d。但是,我不断收到以下错误消息:

Setting up dovecot-imapd (1:2.1.7-7+deb7u1) ...
Creating config file /etc/dovecot/conf.d/20-imap.conf with new version
cp: cannot create regular file `/etc/dovecot/conf.d/20-imap.conf': No such file or directory
dpkg: error processing dovecot-imapd (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up dovecot-pop3d (1:2.1.7-7+deb7u1) ...

Creating config file /etc/dovecot/conf.d/20-pop3.conf with new version
cp: cannot create regular file `/etc/dovecot/conf.d/20-pop3.conf': No such file or directory
dpkg: error processing dovecot-pop3d (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 dovecot-imapd
 dovecot-pop3d
E: Sub-process /usr/bin/dpkg returned an error code (1)

我检查了 /etc/ 文件夹,但似乎甚至没有创建 /etc/dovecot 文件夹,因为它根本不存在。

请有人帮帮我……

答案1

既然软件包无法创建目录,为什么不尝试创建 /etc/dovecot 呢?或者最终是 /etc/dovecot/conf.d/ 软件包管理中可能存在一些不 100% 正确的内容,因此无法创建目录。如果您手动创建它们,在最坏的情况下,它可能会提到目录已经存在。

相关内容