dpkg: ошибка, обрабатывающая почтовую доставку стека пакета

В установке этого mail-stack-delivery Я хотел произвести чистку файлов конфигурации и запуститься, но, казаться, исказил его:

thufir@mordor:~$ 
thufir@mordor:~$ sudo dpkg --configure -a
Setting up mail-stack-delivery (1:2.2.18-2ubuntu2) ...
grep: /etc/dovecot/conf.d/10-ssl.conf: No such file or directory
grep: /etc/dovecot/conf.d/10-ssl.conf: No such file or directory
ln: failed to create symbolic link ‘/etc/dovecot/private/dovecot.pem’: No such file or directory
dpkg: error processing package mail-stack-delivery (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 mail-stack-delivery
thufir@mordor:~$ 
thufir@mordor:~$ sudo rm /etc/apt/sources.list
thufir@mordor:~$ 
thufir@mordor:~$ ls /etc/dovecot/
conf.d
thufir@mordor:~$ 
thufir@mordor:~$ ls /etc/postfix/
thufir@mordor:~$ 

После использования sudo apt-get remove --purge mail-stack-delivery:

The following packages will be REMOVED:
  mail-stack-delivery*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] 
(Reading database ... 201365 files and directories currently installed.)
Removing mail-stack-delivery (1:2.2.18-2ubuntu2) ...
Purging configuration files for mail-stack-delivery (1:2.2.18-2ubuntu2) ...
W: Can not find PkgVer for 'mail-stack-delivery'

Всунутый цикл, где я, может казаться, не удаляю или не устанавливаю его правильно.

0
задан 16 February 2016 в 14:40

1 ответ

Я не знаю, что следующим является ответ , я несколько случайным образом нашел это "решение" со справкой от чат-комнаты Linux на freenode IRC (благодарит Jim и peetaur2):

thufir@mordor:~$ 
thufir@mordor:~$ sudo mkdir /etc/postfix /etc/dovecot/ /etc/dovecot/private/ /etc/dovecot/conf.d/
thufir@mordor:~$ 
thufir@mordor:~$ sudo apt-get install mail-stack-delivery
Reading package lists... Done
Building dependency tree       
Reading state information... Done
mail-stack-delivery is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 145 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] 
Setting up mail-stack-delivery (1:2.2.18-2ubuntu2) ...
grep: /etc/dovecot/conf.d/10-ssl.conf: No such file or directory
grep: /etc/dovecot/conf.d/10-ssl.conf: No such file or directory

Postfix not configured. Run
sudo dpkg-reconfigure postfix and choose
the type of mail server. Then run
sudo dpkg-reconfigure mail-stack-delivery to
finish mail-stack-delivery installation.

thufir@mordor:~$ 
thufir@mordor:~$ sudo dpkg-reconfigure mail-stack-delivery
grep: /etc/dovecot/conf.d/10-ssl.conf: No such file or directory
grep: /etc/dovecot/conf.d/10-ssl.conf: No such file or directory

Postfix not configured. Run
sudo dpkg-reconfigure postfix and choose
the type of mail server. Then run
sudo dpkg-reconfigure mail-stack-delivery to
finish mail-stack-delivery installation.

thufir@mordor:~$ sudo dpkg-reconfigure postfix
setting synchronous mail queue updates: true
Creating /etc/postfix/dynamicmaps.cf
Adding tcp map entry to /etc/postfix/dynamicmaps.cf
Adding sqlite map entry to /etc/postfix/dynamicmaps.cf
setting myhostname: mordor.bounceme.net
setting alias maps
setting alias database
setting myorigin
setting destinations: mordor.bounceme.net, localhost.bounceme.net, localhost
setting relayhost: 
setting mynetworks: 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
setting mailbox_size_limit: 0
setting recipient_delimiter: +
setting inet_interfaces: loopback-only
setting default_transport: error
setting relay_transport: error
setting inet_protocols: all
WARNING: /etc/aliases exists, but does not have a root alias.

Postfix is now set up with a default configuration.  If you need to make 
changes, edit
/etc/postfix/main.cf (and others) as needed.  To view Postfix configuration
values, see postconf(1).

After modifying main.cf, be sure to run '/etc/init.d/postfix reload'.

Running newaliases
Processing triggers for libc-bin (2.21-0ubuntu4) ...
thufir@mordor:~$ 
thufir@mordor:~$ sudo dpkg-reconfigure mail-stack-delivery
grep: /etc/dovecot/conf.d/10-ssl.conf: No such file or directory
grep: /etc/dovecot/conf.d/10-ssl.conf: No such file or directory
Mail stack delivery changes some postfix settings.
Old values are stored in /var/backups/mail-stack-delivery/main.cf-backup.
Feel free to revert any of them when the process is done.
Configuring postfix for mail-stack-delivery integration: .................... done.
thufir@mordor:~$ 
thufir@mordor:~$ 
thufir@mordor:~$ sudo dpkg --configure -a
thufir@mordor:~$ 

очень вероятно, что что-то еще повредило цикл и позволило dpk и apt работать без ошибки.

, как я могу полностью произвести чистку этого пакета и всей конфигурации?

полезная команда CLI я учился сегодня: update-manager для перевода в рабочее состояние способного GUI.

0
ответ дан 29 September 2019 в 12:05

Другие вопросы по тегам:

Похожие вопросы: