[Bug 1311385] Re: package postfix 2.11.0-1 failed to install/upgrade: ErrorMessage: subprocess installed post-installation script returned error exit status 1
@ Basak: Thank you very much for your fast response. per: Robie Basak: This looks like a local configuration problem, rather than a bug in Ubuntu. Postfix is a highly configurable program. There is nearly never an unconfigured installation of postfix. The installer must then be able to success with most if not all legitimate (ie. working and error free) existing configurations. My postfix package was (before the bug report) and still is operating error free - until an update to or reconfiguration of postfix is initiated. Today such an event once again occured. $ sudo apt-get autoremove .. ,, .. The following packages will be REMOVED: db5.1-util libtcl8.5 python-central tcl8.5 .. ,, .. Processing triggers for libc-bin (2.19-0ubuntu6) ... Setting up postfix (2.11.0-1) ... .. ,, .. Running newaliases postalias: fatal: open /etc/postfix/aliases/: Not a directory dpkg: error processing package postfix (--configure): subprocess installed post-installation script returned error exit status 1 .. ,, .. The original bug report was on the occasion of the distribution upgrade - ubuntu 13.10 14.04 Today [Sun Apr 27 13:52:19 2014] the bug repeated during the event as reported above - following a run of sudo apt-get autoremove. In both cases, /var/log/mail.err was written to with lines such as these: Apr 27 11:39:08 Leno-TS130 postfix/postalias[12079]: fatal: open /etc/postfix/aliases/: Not a directory As the log has it, /etc/postfix/aliases is not a directory. No. But it is a file. /etc/postfix/main.cf had the lines: alias_maps = hash:/etc/postfix/aliases/ alias_database = hash:/etc/postfix/aliases/ I edited the lines and remove the trailing / and voila, I ran sudo apt-get autoremove again and postfix was successfully reconfigured (in the apt-get dpkg sense, not postfix main.cf etc). $ dpkg -s postfix .. ,, .. Status: install ok installed .. ,, .. @Robie Basak: You were correct. The postfix main.cf file included a reference to a regular file appended with a / which caused the installer and/or package manager scripts to look only for a directory. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to postfix in Ubuntu. https://bugs.launchpad.net/bugs/1311385 Title: package postfix 2.11.0-1 failed to install/upgrade: ErrorMessage: subprocess installed post-installation script returned error exit status 1 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/postfix/+bug/1311385/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1311385] Re: package postfix 2.11.0-1 failed to install/upgrade: ErrorMessage: subprocess installed post-installation script returned error exit status 1
From log: Setting up postfix (2.11.0-1) ... Installing new version of config file /etc/postfix/postfix-files ... Installing new version of config file /etc/postfix/post-install ... Postfix 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 '/etc/init.d/postfix reload'. Running newaliases postalias: fatal: open /etc/postfix/aliases/: Not a directory dpkg: error processing package postfix (--configure): subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of postfix-mysql: postfix-mysql depends on postfix (= 2.11.0-1); however: Package postfix is not configured yet. dpkg: error processing package postfix-mysql (--configure): dependency problems - leaving unconfigured -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to postfix in Ubuntu. https://bugs.launchpad.net/bugs/1311385 Title: package postfix 2.11.0-1 failed to install/upgrade: ErrorMessage: subprocess installed post-installation script returned error exit status 1 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/postfix/+bug/1311385/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1311385] Re: package postfix 2.11.0-1 failed to install/upgrade: ErrorMessage: subprocess installed post-installation script returned error exit status 1
Thank you for your report. This looks like a local configuration problem, rather than a bug in Ubuntu. You can find pointers to get help for this sort of problem here: http://www.ubuntu.com/support/community Since we use this bug tracker to track bugs in Ubuntu, rather than configuration problems, I'm marking this bug as Invalid. This helps us to focus on fixing bugs in Ubuntu. If you believe that this is really a bug, then you may find it helpful to read How to report bugs effectively http://www.chiark.greenend.org.uk/~sgtatham/bugs.html. We'd be grateful if you would then provide a more complete description of the problem, explain why you believe this is a bug in Ubuntu rather than a problem specific to your system, and then change the bug status back to New. ** Changed in: postfix (Ubuntu) Status: New = Invalid -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to postfix in Ubuntu. https://bugs.launchpad.net/bugs/1311385 Title: package postfix 2.11.0-1 failed to install/upgrade: ErrorMessage: subprocess installed post-installation script returned error exit status 1 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/postfix/+bug/1311385/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1311385] Re: package postfix 2.11.0-1 failed to install/upgrade: ErrorMessage: subprocess installed post-installation script returned error exit status 1
** Attachment removed: VarLogDistupgradeTermlog.gz https://bugs.launchpad.net/bugs/1311385/+attachment/4093409/+files/VarLogDistupgradeTermlog.gz -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to postfix in Ubuntu. https://bugs.launchpad.net/bugs/1311385 Title: package postfix 2.11.0-1 failed to install/upgrade: ErrorMessage: subprocess installed post-installation script returned error exit status 1 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/postfix/+bug/1311385/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs