Error: /etc/resolv.conf isn't a symlink, not doing anything解决


Error: /etc/resolv.conf isn't a symlink, not doing anything解决
 
配置interfaces文件后用/etc/init.d/networking restart命令重启网络配置出现以下错误
resolvconf: Error: /etc/resolv.conf isn't a symlink, not doing anything.
 
resolv.conf默认是个软链接,resolvconf默认会检查resolv.conf不是软链接就报错
ls -l /etc/resolv.conf
lrwxrwxrwx 1 root root 29  5月 17 17:05 /etc/resolv.conf -> ../run/resolvconf/resolv.conf
 
如果想不设置软链接可以通过/etc/default/resolvconf默认文件(没有可新建)设置参数
REPORT_ABSENT_SYMLINK no

相关内容

    暂无相关文章