Comment 15 for bug 42947

Revision history for this message
nicolas (spammail-0x17-deactivatedaccount) wrote :

I encountered this problem on a fresh ubuntu 7.10 LTS server.
what I did (out of my head):
- aptitude install postfix
  -> setup asks some questions, i realize, that my hostname was mistyped, I finish the setup with the wrong hostname
- aptitude remove postifx
- fix /etc/hostname
- aptitude install postfix
  -> setup does not ask the questions because the configs were not removed by 'aptitude remove postifx'
- aptitude remove --purge postfix
   -> /etc/postfix was not removed IIRC (i'm not 100% sure if this is true)
- aptitude install postfix
  -> problem occurs (fatal: /etc/postfix/postfix-script: No such file or directory)

iirc 'aptitude remove --purge postfix' did not remove my configs however this fixed the situation:
- dpkg --remove postfix
- dpkg --purge postfix
- aptitude install postfix

hope this helps
kind regards nicolas