问题描述
我正在尝试安装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.
can be found here存在类似问题,但没有解决方案。 OP刚刚更改了操作系统。
最佳思路
我也遇到了这个问题。它似乎挂在此脚本/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
现在应该安装。