Hello atif. The terminal shows this as the full error message: Starting amavisd: head: cannot open `/etc/mailname' for reading: No such file or directory The value of variable $myhostname is "atifalhazmi-CX500DX", but should have been a fully qualified domain name; perhaps uname(3) did not provide such. You must explicitly assign a FQDN of this host to variable $myhostname in /etc/amavis/conf.d/05-node_id, or fix what uname(3) provides as a host's network name! (failed). invoke-rc.d: initscript amavis, action "restart" failed.
It seems your network is not giving your machine a fully qualified domain name, and you have not configured the system's mailname parameter. I would suggest running sudo dpkg-reconfigure postfix Which should set /etc/mailname if you give your system one, then to finish amavisd's configuration: sudo dpkg --configure -a Please report back here if that fixes your problem. Marking Incomplete pending response. ** Changed in: amavisd-new (Ubuntu) Status: New => Incomplete ** Changed in: amavisd-new (Ubuntu) Importance: Undecided => Medium -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to amavisd-new in Ubuntu. https://bugs.launchpad.net/bugs/972603 Title: package amavisd-new-postfix 1:2.6.5-0ubuntu3 failed to install/upgrade: ErrorMessage: subprocess installed post-installation script returned error exit status 1 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/amavisd-new/+bug/972603/+subscriptions -- 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