Ubuntu error: sudo: unable to resolve host ubuntu: Name or service not known

 

sudo vim /etc/hosts

在"127.0.0.1 localhost"后面:

添加ubuntu,

127.0.0.1 localhost ubuntu

即可。

 

来源:https://askubuntu.com/questions/59458/error-message-sudo-unable-to-resolve-host-none

 

posted @ 2023-09-16 23:31  profesor  阅读(110)  评论(0编辑  收藏  举报