码迷,mamicode.com
首页 > 其他好文 > 详细

错误 /etc/resolv.conf isn't a symlink, not doing anything. 【解决办法】

时间:2014-07-22 00:03:37      阅读:454      评论:0      收藏:0      [点我收藏+]

标签:style   blog   color   文件   art   re   

配置interfaces文件后用/etc/init.d/networking restart命令重启网络配置出现以下错误

* Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces
* Reconfiguring network interfaces...
resolvconf: Error: /etc/resolv.conf isn‘t a symlink, not doing anything.
RTNETLINK answers: File exists
Failed to bring up eth0.
resolvconf: Error: /etc/resolv.conf isn‘t a symlink, not doing anything.
* Setting up iSCSI targets
   ...done.
ssh stop/waiting
ssh start/running, process 15220
   ...done.

 

解决办法:

sudo dpkg-reconfigure resolvconf

 

附上我完整的interfaces文件:

auto lo
iface lo inet loopback


auto eth0
iface eth0 inet static 
address 192.168.1.188    //IP
netmask 255.255.255.0    //子网掩码
gateway 192.168.1.1    //网关
#Broadcast 192.168.1.255
#dns-nameservers 192.168.1.1

错误 /etc/resolv.conf isn't a symlink, not doing anything. 【解决办法】,布布扣,bubuko.com

错误 /etc/resolv.conf isn't a symlink, not doing anything. 【解决办法】

标签:style   blog   color   文件   art   re   

原文地址:http://www.cnblogs.com/mingjng/p/3859341.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!