首页 > 代码库 > 错误 /etc/resolv.conf isn't a symlink, not doing anything. 【解决办法】
错误 /etc/resolv.conf isn't a symlink, not doing anything. 【解决办法】
配置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 existsFailed to bring up eth0.resolvconf: Error: /etc/resolv.conf isn‘t a symlink, not doing anything.* Setting up iSCSI targets ...done.ssh stop/waitingssh start/running, process 15220 ...done.
解决办法:
sudo dpkg-reconfigure resolvconf
附上我完整的interfaces文件:
auto loiface lo inet loopbackauto eth0iface eth0 inet static address 192.168.1.188 //IPnetmask 255.255.255.0 //子网掩码gateway 192.168.1.1 //网关#Broadcast 192.168.1.255#dns-nameservers 192.168.1.1
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。