ubuntu - 使用“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 修改为只有一个点,但这似乎什么也没做。
如果您需要更多信息,请随时询问。预先感谢您的帮助!
解决方案
推荐阅读
- r - bs_embed_popover 与闪亮仪表板
- java - ConcurrentSkipListMap 添加泛型类中定义的比较器
- python - 查找两个字符串模式之间的文本
- java - 可以将服务器配置为禁用自签名证书吗?
- java - Maven:创建依赖项的 uber jar
- marklogic - 是否可以在 MarkLogic 中对三元组执行变音符号、区分大小写/不区分大小写和通配符搜索?
- reactjs - 如何在渲染函数中使用 if 语句?
- jquery - jquery 可排序脚本 - 获取拖动项 id
- javascript - 在浏览器中启动 Ubuntu/Linux 上的 JNLP 文件(Chrome(67) /Mozilla)
- c# - 如何从 EF Core 中的父实体中删除子实体?