What was the old version of postfix? An upgrade from noble would fail
like this afaict as the following postinst checks are all broken:

if dpkg --compare-versions "$OLDVERSION" lt-nl 3.9.0-3~
then
    # cyrus_sasl_config used to be hard-coded in debian to /etc/postfix/sasl.
    # Since 3.9.0-3 we switched to upstream default which is empty,
    # which means to use built-in Cyrus SASL library defaults.
    # Debian policy says it should be /etc/postfix/sasl
    if [ ! "$(postconf -hx cyrus_sasl_config_path)" ]; then
▸   postconf -e cyrus_sasl_config_path=/etc/postfix/sasl
    fi
fi

[...]

if dpkg --compare-versions "$OLDVERSION" lt-nl 3.9.1-8~
then
    if dir=$(postconf -hx html_directory) && [ no = "$dir" ]; then
▸   postconf -e html_directory=/usr/share/doc/postfix/html
▸   postconf -\# html_directory
    fi
    if dir=$(postconf -hx readme_directory) && [ no = "$dir" ]; then
▸   postconf -e readme_directory=/usr/share/doc/postfix
▸   postconf -\# readme_directory
    fi
fi

They try to run postconf even if postfix was installed with "No
configuration" setting and no main.cf exists, so the postconf *reads*
(in the `$()`) fail

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2151806

Title:
  postconf: fatal: open /etc/postfix/main.cf: No such file or directory

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnupg2/+bug/2151806/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to