I have this issue on AWS on some servers. Whenever I run
sudo the terminal is stuck doing seemingly nothing, until it finally spits out this error message. My terminal looks like this:
ubuntu@(none):~$ sudo true sudo: unable to resolve host (none)
What can I do to solve it?