Ubuntu上的Postfix安装错误

前端之家收集整理的这篇文章主要介绍了Ubuntu上的Postfix安装错误前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
如何在Ubuntu 10.04上修复此错误
  1. Reading package lists... Done
  2. Building dependency tree
  3. Reading state information... Done
  4. postfix is already the newest version.
  5. The following packages were automatically installed and are no longer required:
  6. libaprutil1-dbd-sqlite3 libcap2 apache2.2-bin libapr1 libaprutil1-ldap libaprutil1 PHP5-common
  7. Use 'apt-get autoremove' to remove them.
  8. 0 upgraded,0 newly installed,0 to remove and 1 not upgraded.
  9. 1 not fully installed or removed.
  10. After this operation,0B of additional disk space will be used.
  11. Setting up postfix (2.7.0-1) ...
  12.  
  13. Postfix configuration was not changed. If you need to make changes,edit
  14. /etc/postfix/main.cf (and others) as needed. To view Postfix configuration
  15. values,see postconf(1).
  16.  
  17. After modifying main.cf,be sure to run '/etc/init.d/postfix reload'.
  18.  
  19. Running newaliases
  20. newaliases: warning: valid_hostname: numeric hostname: 202002
  21. newaliases: fatal: file /etc/postfix/main.cf: parameter myhostname: bad parameter value: 202002
  22. dpkg: error processing postfix (--configure):
  23. subprocess installed post-installation script returned error exit status 75
  24. Processing triggers for libc-bin ...
  25. ldconfig deferred processing now taking place
  26. Errors were encountered while processing:
  27. postfix
  28. E: Sub-process /usr/bin/dpkg returned an error code (1)

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

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

猜你在找的Ubuntu相关文章