アップグレードまたはインストール中にエラーが発生しました: newaliases: 警告: valid_hostname: 区切り文字の位置が間違っています: prabid-HCL-ME-Laptop..name

アップグレードまたはインストール中にエラーが発生しました: newaliases: 警告: valid_hostname: 区切り文字の位置が間違っています: prabid-HCL-ME-Laptop..name
Postfix (main.cf) 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 'service postfix reload'.

Running newaliases
newaliases: warning: valid_hostname: misplaced delimiter: prabid-HCL-ME-Laptop..name
newaliases: fatal: file /etc/postfix/main.cf: parameter myhostname: bad parameter value: prabid-HCL-ME-Laptop..name
dpkg: error processing package postfix (--configure):
 subprocess installed post-installation script returned error exit status 75
dpkg: dependency problems prevent configuration of mailutils:
 mailutils depends on default-mta | mail-transport-agent; however:
  Package default-mta is not installed.
  Package postfix which provides default-mta 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 package mailutils (--configure):
 dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.26-0ubuntu2) ...
No apport report written because the error message indicates it's a follow-up error from a previous failure.
                            Errors were encountered while processing:
 postfix
 mailutils
E: Sub-process /usr/bin/dpkg returned an error code (1)

答え1

Ubuntuフォーラムのこの投稿問題の解決に役立ちました。

ホスト名の余分なドットを削除しました。

関連情報