sudo出现unable to resolve host

是因为/etc/hosts下的主机名和/etc/hostname下的主机名不一致所导致的错误,将两个改为一致即可

原文地址:https://www.cnblogs.com/the-wang/p/9402081.html