谷歌搜索时我发现这样的东西:askubuntu resolvconf
但 /etc/resolv.conf 似乎不存在
须藤 dpkg-reconfigure resolvconf
返回 resolvconf 已损坏或未完全安装
听说 18.04 现在可能正在使用 netplan,但 /etc/netplan 似乎完全为空
不知道现在该怎么做,任何帮助将不胜感激
编辑:运行 sudo apt install resolvconf 要求我删除 openresolv,不管是什么,不确定我是否应该这样做:/
编辑:/etc/network/interfaces 除了环回接口外完全是空的,仍然可以 ping IP 地址
如果有人遇到类似的问题,这是我修复它的方法
从Ubuntu官方来源手动下载resolvconf.deb:http : //security.ubuntu.com/ubuntu/pool/universe/r/resolvconf/resolvconf_1.79ubuntu10_all.deb
使用USB传输到Ubuntu PC
sudo apt purge resolvconf
sudo apt install ./resolvconf_1.79ubuntu10_all.deb
sudo dpkg --reconfigure resolvconf
reboot
然后它应该被修复
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句