【发布时间】:2017-12-31 14:48:50
【问题描述】:
当我尝试运行某些命令时,我收到此错误 - sudo: 无法解析主机 giver.local
可能是什么问题?
【问题讨论】:
-
这太模糊了。 你运行了什么命令,究竟是什么?
-
例如 sudo systemctl start gunicorn
当我尝试运行某些命令时,我收到此错误 - sudo: 无法解析主机 giver.local
可能是什么问题?
【问题讨论】:
该错误表明您的 /etc/hosts 或 etc/hostname 有问题
见https://askubuntu.com/questions/59458/error-message-when-i-run-sudo-unable-to-resolve-host-none。
【讨论】:
检查/etc/hosts 文件中的这一行:
127.0.0.1 localhost
假设它正确打印错误,giver.local 将代替 localhost。
如果这不起作用,我建议删除该 droplet 并重新开始,因为此错误并不常见(据我或 Google 所知)。
【讨论】: