sudo出现 unable to resolve host xxxx的解决方法
来源:互联网 发布:网络直销的特点 编辑:程序博客网 时间:2024/06/05 06:44
不知从什么时候开始,使用sudo就会出现 unable to resolve host xxxx(XXXX是主机名)
这个虽然对sudo的功能没有影响,但是每次sudo都看到,就觉得很不爽,然后就找了些资料,把这个干掉了!
既然是host的问题,那么我们就进入/etc/hosts看看
输入指令: sudo vi /etc/hosts
显示
127.0.0.1 ubuntu
# The following lines are desirable for IPv6 capable hosts
。。。。。。。。。。。。。。省略这里默认的主机名是ubuntu而没有我们的xxxx
我在这里发现了问题的源头:我改了主机名,而/etc/hosts这个文件的内容没有更改。
那么既然知道了原因,就好解决了!吧ubuntu改成xxxx就好了!
由于本人水平有限!如有不对的地方,请大家多多指正!本人邮箱:persistvonyao@gmail.com
6 0
- sudo出现 unable to resolve host xxxx的解决方法
- sudo 出现unable to resolve host 解决方法
- sudo 出现unable to resolve host 解决方法
- sudo 出现unable to resolve host 解决方法
- sudo 出现unable to resolve host 解决方法
- sudo 出现unable to resolve host 解决方法
- sudo 出现unable to resolve host 解决方法
- sudo 出现unable to resolve host 解决方法
- sudo 出现unable to resolve host 解决方法
- sudo 出现unable to resolve host 解决方法
- sudo 出现unable to resolve host 解决方法
- sudo 出现unable to resolve host 解决方法
- sudo 出现unable to resolve host 解决方法
- sudo 出现unable to resolve host ocean 解决方法
- Linux下SUDO出现Unable to resolve host XXX解决方法
- ubuntu16.04 sudo 出现unable to resolve host 解决方法
- Ubuntu sudo 出现unable to resolve host 解决方法
- Ubuntu环境下sudo出现unable to resolve host 解决方法
- 韓長庚 先生 遺迹 1929年 (延世大學校 圖書館)
- Couldn't find a destroy method named 'false' on bean with ....
- 打开struts2.xml文件时提示 Could not open the editor: A...
- SpringMVC支持解析多视图配置
- 冒泡排序
- sudo出现 unable to resolve host xxxx的解决方法
- 判断浏览器及os版本
- NSDictionary,NSMUtableDictionary-OC+class
- Java 回调机制及其Spring 中HibernateTemplate的源码分析
- 敏捷之旅2013北京站的总结
- 将文件夹下面的文件移到指定文件夹
- 32 位应用程序转换为 64 位应用程序
- 选择排序
- 上海Java技术沙龙第6期