Ubuntu16.0.4 unable to resolve host ubuntu: Connection timed out

An error

Perform sudo suparticularly slow, reported the following error

unable to resolve host ubuntu: Connection timed out

Solution

View hostname file, and remember insidehostname

cat /etc/hostname

Edit the hosts file

vi /etc/hosts

Find 127.0.0.1 localhostthe contents of the hostname file is about to be added to the hosts file

127.0.0.1	localhost hostname

Again running sudo suspeed of the fly


Reference: https://blog.csdn.net/lxlong89940101/article/details/84615712

Guess you like

Origin blog.csdn.net/yh0503/article/details/90599855