Erro na instalação

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:
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?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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