Question

Erro na instalação

Posted November 24, 2020 225 views
EmailUbuntu 18.04
postconf: warning: valid_hostname: numeric hostname: 01
postconf: fatal: unable to use my own hostname
postconf: warning: valid_hostname: numeric hostname: 01
postconf: fatal: unable to use my own hostname
dpkg: error processing package postfix (--configure):
 installed postfix package post-installation script subprocess returned error exit status 1
Setting up mailutils-common (1:3.4-1) ...
Setting up libgsasl7:amd64 (1.8.0-8ubuntu3) ...
Setting up libmailutils5:amd64 (1:3.4-1) ...
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
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Processing triggers for systemd (237-3ubuntu10.38) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for rsyslog (8.32.0-1ubuntu4) ...
Processing triggers for ufw (0.36-0ubuntu0.18.04.1) ...
Rules updated for profile 'Nginx HTTP'
Skipped reloading firewall
Processing triggers for ureadahead (0.100.0-21) ...
Processing triggers for libc-bin (2.27-3ubuntu1.2) ...
Errors were encountered while processing:
 postfix
 mailutils
E: Sub-process /usr/bin/dpkg returned an error code (1)

Já fiz algumas tentativas que vi na internet, mas nada adiantou. Alguma sugestão?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
1 answer

Hi @fabiosjordao,

You can try to purge postfix and install it again. What you can try is :

rm /var/lib/dpkg/info/postfix.*

The above command will delete any cached files you have for postfix in dpkg. Then run

apt-get purge postfix

Now you should have postfix completely removed from the system. Now that you have it like that go ahead and try to install it again.

Regards,
KFSys