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