Repeated messages regarding host resolution during install

Not sure if relevant, but here goes anyway. This is a fresh v60 install on a new Ubuntu 22 LTS. I noticed some messages here and there during the install:
sudo: unable to resolve host box.abc.com: Temporary failure in name resolution

What seems to fix it (or at least the message does not show anymore :grinning:) I got from here.

In a nutshell, find the hostname with cat /etc/hostname and add a line in /etc/hosts:

cat /etc/hostname
box.abc.com

Then
nano /etc/hosts
and add the line with 127.0.1.1 and add the hostname as above

# /etc/hosts
127.0.0.1       localhost
127.0.1.1       box.abc.com

# The following lines are desirable for IPv6 capable hosts
::1             localhost ip6-localhost ip6-loopback
ff02::1         ip6-allnodes
ff02::2         ip6-allrouters
    

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.