Ubuntu 16.04命令行sendmail安装挂起


46

我试图安装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刚刚更改了操作系统。


嘿,支持信息(我刚刚经历了此问题)sendmail安装程序脚本为openssl提供了错误的参数。具体而言,此行正在等待脚本未提供的来自STDIN的数据,并且尚未提供-in参数。openssl dsaparam 2048-输出。我不确定解决方案。也许将错误提交给sendmail软件包维护者?
约瑟姆

我如何与维护者联系。我至少需要解决这个问题。我现在卡住了超过1天。我也无法安装其他软件包。
西西尔

Answers:


100

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

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

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

现在应该安装。


16
这行得通,谢谢。旁注:如果dpkg由于挂起的安装而被锁定,则需要首先杀死update_sendmail pid。[ps -A | grep update_sendmail],然后再运行dpkg --configure -a。
pragmar

8
在杀死处理过的卡住的dpkg并运行dpkg --configure -a之后,它现在挂在“正在更新/ etc / mail / aliases ...”上
Alex Shchur

5
哦,等等,实际上现在还好。它只是花了一段时间做的事情
亚历Shchur

4
也适用于Ubuntu 14.04
Lavi Avigdor

4
我收到此错误:Warning: 3 database(s) sources were not found, (but were created) please investigate.我应该担心吗?
user10089632
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.