安装resolvconf sudo apt install resolvconf 修改/etc/resolvconf/resolv.conf.d/tail 添加nameserver X.X.X.X重启resolvconf服务 sudo systemctl restart resolvconf