** Description changed: + [ Impact ] + + Users lacking the /etc/postfix/main.cf file (possible when 'postfix/main_mailer_type' debconf option is set to 'No configuration') will be + unable to upgrade from Noble to Resolute as the postinst script will fail. + + This is fixed by adding guards to the relevant blocks of the postinst script + that cause the failure to make sure the file exists. + + [ Test Plan ] + + 1. Install postfix with the configuration set to cause the file to be + absent: + + $ echo 'postfix postfix/main_mailer_type select No configuration' | debconf-set selections + $ DEBIAN_FRONTEND=noninteractive apt install -y postfix + + 2. Manully run the postinst script as if you are upgrading from the old + version: + + $ /var/lib/dpkg/info/postfix.postinst configure 3.8.6-1build2; echo + "rc=$?" + + 3. On failure you will see: + + postconf: fatal: open /etc/postfix/main.cf: No such file or directory + postconf: fatal: open /etc/postfix/main.cf for reading: No such file or directory + rc=1 + + on success, these errors will not appear and the script will exit rc=0. + + [ Where Problems Might Occur ] + + * We're touching the postinst script, meaning that future updates might not + play nicely with this change and require additional guards in the future. + + * The fix simply does not run part of the postinst script when /etc/postfix/main.cf + does not exist. If there are other issues involving this missing file after + upgrades to Resolute, they will now present themselves since the upgrade is + now permitted. This would require additional SRUs if such issues are found. + + [ Original Bug ] + package postfix 3.10.6-4ubuntu2.1 failed to install/upgrade: old postfix package postinst maintainer script subprocess failed with exit status 1 ProblemType: Package DistroRelease: Ubuntu 26.04 Package: postfix 3.10.6-4ubuntu2.1 ProcVersionSignature: Ubuntu 7.0.0-30.30~24.04.1-generic 7.0.12 Uname: Linux 7.0.0-30-generic x86_64 ApportVersion: 2.34.1-0ubuntu0.1 Architecture: amd64 CasperMD5CheckResult: pass Date: Tue Sep 1 10:26:13 2026 DuplicateSignature: InvalidHostOrDomain ErrorMessage: old postfix package postinst maintainer script subprocess failed with exit status 1 EtcMailname: *** /etc/mailname does not exist *** Hostname: hitoaki-server-ubuntu InstallationDate: Installed on 2025-02-01 (577 days ago) InstallationMedia: Ubuntu 24.04.1 LTS "Noble Numbat" - Release amd64 (20240827.1) PostconfMydomain: Error: command ['/usr/sbin/postconf', '-h', 'mydomain'] failed with exit code 1: /usr/sbin/postconf: fatal: open /etc/postfix/main.cf: No such file or directory PostconfMyhostname: Error: command ['/usr/sbin/postconf', '-h', 'myhostname'] failed with exit code 1: /usr/sbin/postconf: fatal: open /etc/postfix/main.cf: No such file or directory PostconfMyorigin: Error: command ['/usr/sbin/postconf', '-h', 'myorigin'] failed with exit code 1: /usr/sbin/postconf: fatal: open /etc/postfix/main.cf: No such file or directory Python3Details: /usr/bin/python3.14, Python 3.14.4, python3-minimal, 3.14.3-0ubuntu2 PythonDetails: N/A RebootRequiredPkgs: Error: path contained symlinks. RelatedPackageVersions: - dpkg 1.23.7ubuntu1 - apt 3.2.0 + dpkg 1.23.7ubuntu1 + apt 3.2.0 SourcePackage: postfix Title: package postfix 3.10.6-4ubuntu2.1 failed to install/upgrade: old postfix package postinst maintainer script subprocess failed with exit status 1 UpgradeStatus: Upgraded to resolute on 2026-09-01 (0 days ago) modified.conffile..etc.network.ip-down.d.postfix: [deleted] modified.conffile..etc.postfix.post-install: [deleted] modified.conffile..etc.postfix.postfix-script: [deleted]
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2165958 Title: package postfix 3.10.6-4ubuntu2.1 failed to install/upgrade: old postfix package postinst maintainer script subprocess failed with exit status 1 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/postfix/+bug/2165958/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
