Ubuntu 16.04命令行sendmail安装挂了

Modified on: Sat, 09 Jun 2018 18:45:53 +0800

我试图安装sendmail但是在尝试生成ssl证书时它正在挂起。我已经取消了安装过程,后来杀死了锁定任何新软件包的进程。

但每当我运行apt-get install <package_name>时,它都会返回到sendmail安装并尝试安装ssl证书。

我重新启动了系统,但问题仍然存在。

如何解决此问题?

CLI信息

sudo dpkg --configure -a
Setting up sendmail-bin (8.15.2-3) ...
Updating sendmail environment ...
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Writing configuration to /etc/mail/sendmail.conf.
Writing /etc/cron.d/sendmail.
Disabling HOST statistics file(/var/lib/sendmail/host_status).
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Writing configuration to /etc/mail/sendmail.conf.
Writing /etc/cron.d/sendmail.
Could not open /etc/mail/databases(No such file or directory), creating it.
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Creating /etc/mail/databases...

Checking filesystem, this may take some time - it will not hang!
  ...   Done.

Checking for installed MDAs...
sasl2-bin not installed, not configuring sendmail support.

To enable sendmail SASL2 support at a later date, invoke "/usr/share/sendmail/update_auth"


Creating/Updating SSL(for TLS) information
Creating /etc/mail/tls/starttls.m4...
Creating SSL certificates for sendmail.

类似的问题可在此处找到但没有解决方案。 OP刚改变了操作系统。

作者:Sisir

最佳答案

我刚刚也遇到过这个问题。它似乎挂在此脚本/usr/share/sendmail/update_tls的第240行。

为了解决这个问题,我执行了以下命令:

cd /etc/mail/tls
sudo openssl dsaparam -out sendmail-common.prm 2048
sudo chown root:smmsp sendmail-common.prm
sudo chmod 0640 sendmail-common.prm
sudo dpkg --configure -a

现在应该安装。

作者:,Simon

相关问答

添加新评论