sudo
the terminal is stuck for a few seconds and then outputs an error message. My terminal looks like this:ubuntu@(none):~$ sudo true
sudo: unable to resolve host (none)
127.0.0.1 localhost.localdomain localhost
127.0.1.1 my-machine
echo $(hostname -I | cut -d\ -f1) $(hostname) | sudo tee -a /etc/hosts
sudo nano /etc/hosts
127.0.0.1 localhost.localdomain localhost
127.0.1.1 ubuntu