Ubuntu下“wget:unable to resolve host address”解决方案

Ubuntu下“wget:unable to resolve host address”解决方案

“wget:unable to resolve host address”的产生原因为host地址无法解析。解决方案: 使用root权限,修改文件/etc/resolv.conf,增加如下两行:
nameserver 8.8.8.8
nameserver 8.8.4.4

posted @ 2023-02-19 14:58  MasonLee  阅读(854)  评论(0编辑  收藏  举报