Hi,

I changed the hostname and ran apt-get install postfix and 
sudo dpkg-reconfigure postfix

but it didn't fix the problem. it seems that I need to remove the broken
installation first!?

how?

Please advise.

Thanks,

Masood


mas...@masood-rocks:~$ sudo su
[sudo] password for masood: 
r...@masood-rocks:/home/masood# /etc/init.d/motion stop
Stopping motion detection : motion
.
r...@masood-rocks:/home/masood# apt-get reconfigure postfix
E: Invalid operation reconfigure
r...@masood-rocks:/home/masood# sudo dpkg-reconfigure postfix
/usr/sbin/dpkg-reconfigure: postfix is broken or not fully installed
r...@masood-rocks:/home/masood# sudo apt-get install postfix
Reading package lists... Done
Building dependency tree       
Reading state information... Done
postfix is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 18 not upgraded.
31 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up postfix (2.5.5-1) ...

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
newaliases: warning: valid_hostname: invalid character 33(decimal): 
masood-ROCKS!>
newaliases: fatal: file /etc/postfix/main.cf: parameter myhostname: bad 
parameter value: masood-ROCKS!>
dpkg: error processing postfix (--configure):
 subprocess post-installation script returned error exit status 75
dpkg: dependency problems prevent configuration of courier-maildrop:
 courier-maildrop depends on postfix | mail-transport-agent; however:
  Package postfix is not configured yet.
  Package mail-transport-agent is not installed.
  Package postfix which provides mail-transport-agent is not configured yet.
dpkg: error processing courier-maildrop (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of mlmmj:
 mlmmj depends on exim4 | mail-transport-agent; however:
  Package exim4 is not installed.
  Package mail-transport-agent is not installed.
  Package postfix which provides mail-transport-agent is not configured yet.
dpkg: error processing mlmmj (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of dtc-common:
 dtc-common depends on courier-maildrop | cyrus-imapd-2.2; however:
  Package courier-maildrop is not configured yet.
  Package cyrus-imapd-2.2 is not installed.
 dtc-common dNo apport report written because the error message indicates its a 
followup error from a previous failure.
                                       No apport report written because the 
error message indicates its a followup error from a previous failure.
                                                                 No apport 
report written because MaxReports is reached already
                                               No apport report written because 
MaxReports is reached already
                             No apport report written because MaxReports is 
reached already
           No apport report written because MaxReports is reached already
                                                                         No 
apport report written because MaxReports is reached already
                                                       No apport report written 
because MaxReports is reached already
                                     No apport report written because 
MaxReports is reached already
                   epends on mlmmj; however:
  Package mlmmj is not configured yet.
dpkg: error processing dtc-common (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of courier-imap:
 courier-imap depends on postfix | mail-transport-agent; however:
  Package postfix is not configured yet.
  Package mail-transport-agent is not installed.
  Package postfix which provides mail-transport-agent is not configured yet.
dpkg: error processing courier-imap (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of courier-imap-ssl:
 courier-imap-ssl depends on courier-imap (>= 1.3.7-3); however:
  Package courier-imap is not configured yet.
dpkg: error processing courier-imap-ssl (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of courier-pop:
 courier-pop depends on postfix | mail-transport-agent; however:
  Package postfix is not configured yet.
  Package mail-transport-agent is not installed.
  Package postfix which provides mail-transport-agent is not configured yet.
dpkg: error processing courier-pop (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of courier-pop-ssl:
 courier-pop-ssl depends on courier-pop; however:
  Package courier-pop is not configured yet.
dpkg: error processing courier-pop-ssl (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of postfix-mysql:
 postfix-mysql depends on postfix (= 2.5.5-1); however:
  Package postfix is not configured yet.
dpkg: error processing postfix-mysql (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of dtc-postfix-courier:
 dtc-postfix-courier depends on dtc-common; however:
  Package dtc-common is not configured yet.
 dtc-postfix-courier depends on courier-maildrop; however:
  Package courier-maildrop is not configured yet.
 dtc-postfix-courier depends on courier-imap; however:
  Package courier-imap is not configured yet.
 dtc-postfix-courier depends on courier-imap-ssl; however:
  Package courier-imap-ssl is not configured yet.
 dtc-postfix-courier depends on courier-pop; however:
  Package courier-pop is not configured yet.
 dtc-postfix-courier depends on courier-pop-ssl; however:
  Package courier-pop-ssl is not configured yet.
 dtc-postfix-courier depends on postfix (>= 2.0); however:
  Package postfix is not configured yet.
 dtc-postfix-courier depends on postfix-mysql; however:
  Package postfix-mysql is not configured yet.
 dtc-postfix-courier depends on postfix-tls (>= 2.0) | postfix (>= 2.2.10); 
however:
  Package postfix-tls is not installed.
  Package postfix is not configured yet.
dpkg: error processing dtc-postfix-courier (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of bld-postfix:
 bld-postfix depends on postfix; however:
  Package postfix is not configured yet.
dpkg: error processing bld-postfix (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of bsd-mailx:
 bsd-mailx depends on exim4 | mail-transport-agent; however:
  Package exim4 is not installed.
  Package mail-transport-agent is not installed.
  Package postfix which provides mail-transport-agent is not configured yet.
dpkg: error processing bsd-mailx (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of postfix-pgsql:
 postfix-pgsql depends on postfix (= 2.5.5-1); however:
  Package postfix is not configured yet.
dpkg: error processing postfix-pgsql (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gforge-mta-postfix:
 gforge-mta-postfix depends on postfix; however:
  Package postfix is not configured yet.
 gforge-mta-postfix depends on postfix-pgsql; however:
  Package postfix-pgsqlNo apport report written because MaxReports is reached 
already
     No apport report written because MaxReports is reached already
                                                                   No apport 
report written because MaxReports is reached already
                                                 No apport report written 
because MaxReports is reached already
                               No apport report written because MaxReports is 
reached already
             No apport report written because MaxReports is reached already
                                                                           No 
apport report written because MaxReports is reached already
                                                         No apport report 
written because MaxReports is reached already
                                       No apport report written because 
MaxReports is reached already
                     No apport report written because MaxReports is reached 
already
   No apport report written because MaxReports is reached already
                                                                 No apport 
report written because MaxReports is reached already
                                               No apport report written because 
MaxReports is reached already
                              is not configured yet.
dpkg: error processing gforge-mta-postfix (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of mailx:
 mailx depends on bsd-mailx; however:
  Package bsd-mailx is not configured yet.
dpkg: error processing mailx (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of postfix-dev:
 postfix-dev depends on postfix (>= 2.5.5-0); however:
  Package postfix is not configured yet.
 postfix-dev depends on postfix (<< 2.5.5.0-0); however:
  Package postfix is not configured yet.
dpkg: error processing postfix-dev (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of postfix-ldap:
 postfix-ldap depends on postfix (= 2.5.5-1); however:
  Package postfix is not configured yet.
dpkg: error processing postfix-ldap (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of postfix-pcre:
 postfix-pcre depends on postfix (= 2.5.5-1); however:
  Package postfix is not configured yet.
dpkg: error processing postfix-pcre (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of postfix-smtpguard:
 postfix-smtpguard depends on postfix; however:
  Package postfix is not configured yet.
dpkg: error processing postfix-smtpguard (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of lsb-core:
 lsb-core depends on postfix | mail-transport-agent; however:
  Package postfix is not configured yet.
  Package mail-transport-agent is not installed.
  Package postfix which provides mail-transport-agent is not configured yet.
 lsb-core depends on mailx | mailutils; however:
  Package mailx is not configured yet.
  Package bsd-mailx which provides mailx is not configured yet.
  Package mailutils is not installed.
dpkg: error processing lsb-core (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of lsb-graphics:
 lsb-graphics depends on lsb-core; however:
  Package lsb-core is not configured yet.
dpkg: error processing lsb-graphics (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of lsb-cxx:
 lsb-cxx depends on lsb-core; however:
  Package lsb-core is not configured yet.
dpkg: error processing lsb-cxx (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of lsb-desktop:
 lsb-desktop depends on lsb-graphics; however:
  Package lsb-graphics is not configured yet.
dpkg: error processing lsb-desktop (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of lsb-printing:
 lsb-printing depends on lsb-core (>= 3.2); however:
  Package lsb-core is not configured yet.
dpkg: error processing lsb-printing (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of lsb-multimedia:
 lsb-multimedia depends on lsb-core (>= 3.2); however:
  Package lsb-core is not configured yet.
dpkg: error processing lsb-multimedia (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of lsb-languages:
 lsb-languages depends on lsb-core (>= 3.2); however:
  Package lsb-core is not configured yet.
dpkg: error processing lsb-languages (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of lsb:
 lsb depends on lsb-core; however:
  Package lsb-core is not configured yet.
 lsb depends on lsb-graphics; however:
  Package lsb-graphics is not configured yet.
 lsb depends on lsb-cxx; however:
  Package lsb-cxx is not configured yet.
 lsb depends on lsb-desktop; however:
  Package lsb-desktop is not configured yet.
 lsb depends on lsb-printing; however:
  Package lsb-printing is not configured yet.
 lsbNo apport report written because MaxReports is reached already
                                                                  No apport 
report written because MaxReports is reached already
                                                No apport report written 
because MaxReports is reached already
                              No apport report written because MaxReports is 
reached already
            No apport report written because MaxReports is reached already
                                                                          No 
apport report written because MaxReports is reached already
                                                        No apport report 
written because MaxReports is reached already
                                      No apport report written because 
MaxReports is reached already
                     depends on lsb-multimedia; however:
  Package lsb-multimedia is not configured yet.
 lsb depends on lsb-languages; however:
  Package lsb-languages is not configured yet.
dpkg: error processing lsb (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of realplay:
 realplay depends on lsb (>= 3.1); however:
  Package lsb is not configured yet.
dpkg: error processing realplay (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of postfix-cdb:
 postfix-cdb depends on postfix (= 2.5.5-1); however:
  Package postfix is not configured yet.
dpkg: error processing postfix-cdb (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of postfix-policyd-spf-perl:
 postfix-policyd-spf-perl depends on postfix; however:
  Package postfix is not configured yet.
dpkg: error processing postfix-policyd-spf-perl (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of postfix-policyd-spf-python:
 postfix-policyd-spf-python depends on postfix (>= 2.1); however:
  Package postfix is not configured yet.
dpkg: error processing postfix-policyd-spf-python (--configure):
 dependency problems - leaving unconfigured
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
 postfix
 courier-maildrop
 mlmmj
 dtc-common
 courier-imap
 courier-imap-ssl
 courier-pop
 courier-pop-ssl
 postfix-mysql
 dtc-postfix-courier
 bld-postfix
 bsd-mailx
 postfix-pgsql
 gforge-mta-postfix
 mailx
 postfix-dev
 postfix-ldap
 postfix-pcre
 postfix-smtpguard
 lsb-core
 lsb-graphics
 lsb-cxx
 lsb-desktop
 lsb-printing
 lsb-multimedia
 lsb-languages
 lsb
 realplay
 postfix-cdb
 postfix-policyd-spf-perl
 postfix-policyd-spf-python
E: Sub-process /usr/bin/dpkg returned an error code (1)
r...@masood-rocks:/home/masood#

-- 
package postfix 2.5.5-1 failed to install/upgrade: invalid hostname
https://bugs.launchpad.net/bugs/342617
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to postfix in ubuntu.

-- 
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

Reply via email to