Ubuntu上的Postfix安装错误

如何在Ubuntu 10.04上修复此错误
Reading package lists... Done
Building dependency tree       
Reading state information... Done
postfix is already the newest version.
The following packages were automatically installed and are no longer required:
  libaprutil1-dbd-sqlite3 libcap2 apache2.2-bin libapr1 libaprutil1-ldap libaprutil1 PHP5-common
Use 'apt-get autoremove' to remove them.
0 upgraded,0 newly installed,0 to remove and 1 not upgraded.
1 not fully installed or removed.
After this operation,0B of additional disk space will be used.
Setting up postfix (2.7.0-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: numeric hostname: 202002
newaliases: fatal: file /etc/postfix/main.cf: parameter myhostname: bad parameter value: 202002
dpkg: error processing postfix (--configure):
 subprocess installed post-installation script returned error exit status 75
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
 postfix
E: Sub-process /usr/bin/dpkg returned an error code (1)

即使我重新启动,也会出现相同的错误.
谢谢您的帮助..

它清楚地说明错误在/etc/postfix/main.cf中.打开它并修复myhostname值以匹配hostname命令.然后运行service postfix reload并检查它是如何的.

相关文章

1.安装过程出现0x00000000指令引用的0x00000000内存该内存不能为written 如果你安装的是inux系统 需要在...
写在全面:如果根据以下教程涉及到只读文件需要更改文件权限才能需修改文件内容,参考我的另一篇博客:...
写在前面:以下步骤中需要在终端输入命令,电脑端查看博客的朋友可以直接复制粘贴到终端,手机端查看的...
ubuntu16.04和18.04更换国内源 写在前面:安装好ubuntu双系统后,默认的软件更新源是国外的,在国内使用...
ubuntu双系统启动时卡死解决办法(在ubuntu16.04和18.04测试无误) 问题描述: 在安装完ubuntu双系统后...
又来造轮子了。。。。。。。。。。。。。。。。 今天使用w3af向文件中写入的时候,发现没有write权限,...