Sendmail 库错误

Sendmail 库错误

从 Ubuntu 18.04 升级到 18.10 后,我的笔记本电脑出现错误:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
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 sendmail-base (8.15.2-11) ...
Saving current /etc/mail/sendmail.mc,cf to /var/backups
update-inetd: warning: cannot add service, /etc/inetd.conf does not exist
update-inetd: warning: cannot add service, /etc/inetd.conf does not exist
update-inetd: warning: cannot add service, /etc/inetd.conf does not exist
update-inetd: error: --group is only relevant with --add
dpkg: error processing package sendmail-base (--configure):
 installed sendmail-base package post-installation script subprocess returned error exit status 255
Errors were encountered while processing:
 sendmail-base
E: Sub-process /usr/bin/dpkg returned an error code (1)
nocturnal@nocturnal-Linux:~$ 

如果我sudo-apt get upgrade在终端上写入或任何方式。

有人能帮帮我吗?

答案1

我按照一位用户的建议做了论坛。

仅替换:

update-inetd --group MAIL --disable smtp,smtps,submission;

和:

update-inetd --disable smtp,smtps,submission;

在文件中/var/lib/dpkg/info/sendmail-base.prerm

答案2

感谢@J.Demand 的回答

我也更换

update-inetd --group MAIL --multi --disable smtp,smtps,submission;

update-inetd --multi --disable smtp,smtps,submission;

在目录中

/var/lib/dpkg/info/sendmail-base.postinst

这是有效的。谢谢

相关内容