postfix-doc postinst fails if no /etc/postfix/main.cf is on the system
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
postfix (Ubuntu) |
Fix Released
|
High
|
Michael Vogt |
Bug Description
Binary package hint: postfix
During a upgrade test from dapper->hardy the following problem occurred:
[71.4563] postfix: Configuring postfix
Postfix was not set up. Start with ^M
cp /usr/share/
. If you need to make changes, edit^M
/etc/postfix/
values, see postconf(1).^M
^M
After modifying main.cf, be sure to run '/etc/init.
^M
in master.cf:^M
adding missing entry for retry service^M
[71.4609] postfix: Installed postfix
...
[85.7169] postfix-doc: Configuring postfix-doc
postconf: fatal: open /etc/postfix/
dpkg: error processing postfix-doc (--configure):^M
subprocess post-installation script returned error exit status 1^M
Debug output of the failed script:
+ set -e
+ [ -x /usr/sbin/postconf ]
+ postconf -e readme_
postconf: fatal: open /etc/postfix/
['/bin/sh', '-ex', '/var/lib/
This seems to be somewhat difficult to reproduce, but it looks like its dependant on the unpack/configure order that apt is selecting. postfix copies the file in place in the postinst. If both are unapcked and the postinst of postfix-doc is run before the one postfix then this error can happen (that is my current theory :)