我是 Ubuntu 新手,刚刚在系统上安装了 Ubuntu 服务器 16.04,当我尝试安装 wordpress 时,它显示此错误。这是什么错误?我该如何解决这个问题:
dpkg: error processing package amavisd-new (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
amavisd-new
E: Sub-process /usr/bin/dpkg returned an error code (1)
答案1
解决方案是在/etc/amavis/conf.d/05-node_id
它看起来应该是这样的:
use strict;
# $myhostname is used by amavisd-new for node identification, and it is
# important to get it right (e.g. for ESMTP EHLO, loop detection, and so on).
chomp($myhostname = `hostname --fqdn`);
# To manually set $myhostname, edit the following line with the correct Fully
# Qualified Domain Name (FQDN) and remove the # at the beginning of the line.
#
$myhostname = "abc.def.ghi";
1; # ensure a defined return