PDA

View Full Version : [ubuntu] can't install postfix



bandito40
December 12th, 2008, 11:14 PM
When installing postfix I get stuck on the following screen:

Package configuration


┌─────────────────────────┤ Postfix Configuration ├─────────────────────────┐
│ The "mail name" is the domain name used to "qualify" mail addresses │
│ without a domain name. │
│ │
│ This name will also be used by other programs. It should be the single, │
│ fully qualified domain name (FQDN). │
│ │
│ Thus, if a mail address on the local host is foo@example.org, the │
│ correct value for this option would be example.org. │
│ │
│ System mail name: │
│ │
│ localhost.com_____________________________________ _______________________ │
│ │
│ <Ok> <Cancel> │
│ │
└───────────────────────────────────────────────── ────────────────────────


Neither <OK> or <Cancel> seam to work.



I tried purging postfix but I get the following error:

dpkg: error processing postfix (--remove):
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
Errors were encountered while processing:
postfix
E: Sub-process /usr/bin/dpkg returned an error code (1)




Then I tried: sudo dpkg --reinstall postfix

which gave me the following error:

dpkg: error processing postfix (--remove):
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
Errors were encountered while processing:
postfix


Anyone know what I can do about this error?

Thanks,

Bandito

asommer
December 17th, 2008, 05:42 AM
You might try:


apt-get -f install

To see if that will re-install postfix correctly.