首页 > 解决方案 > 使用“apt”时,如何避免出现 postfix 错误 75?

问题描述

我刚刚将我的系统从 Ubuntu 20.04 升级到 Ubuntu 21.04,它出现了这个错误(作为图形错误窗口):“安装的 postfix 包安装后脚本子进程返回错误退出状态 75”。然后它中止升级并恢复到 20.04。更新程序终端的最后一行显示:“处理时遇到的错误:后缀”

现在,每当我尝试运行 apt 时,它都会给我这个错误(例如,当我运行 sudo apt install git 时):

Postfix (main.cf) configuration was not changed.  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 'systemctl reload postfix'.

Running newaliases
newaliases: fatal: bad string length 0 < 1: mydomain = 
dpkg: error processing package postfix (--configure):
 installed postfix package post-installation script subprocess returned error ex
it status 75
Processing triggers for libc-bin (2.33-0ubuntu5) ...
Errors were encountered while processing:
 postfix
E: Sub-process /usr/bin/dpkg returned an error code (1)

为了解决这个问题,我已经尝试将 main.cf 中的 myhostname 修改为只有一个点,但这似乎什么也没做。

如果您需要更多信息,请随时询问。预先感谢您的帮助!

标签: ubuntuupgrade

解决方案


推荐阅读