【问题标题】:Problem connecting to internet in ubuntu while I have reset all service.conf重置所有 service.conf 时在 ubuntu 中连接到 Internet 时出现问题
【发布时间】:2021-12-13 14:34:38
【问题描述】:

每次在我的设备上,我都必须在互联网上找到以下配置才能访问互联网,否则我会出现以下错误

ping: google.com: Temporary failure in name resolution

这是我的设备操作系统

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.3 LTS
Release:    20.04
Codename:   focal

这是我在互联网上找到的解决方案

sudo systemctl disable systemd-resolved.service
sudo systemctl stop systemd-resolved.service
sudo rm /etc/resolv.conf
sudo vim /etc/resolv.conf

然后添加

servername 8.8.8.8

并保存。然后我启用服务

sudo systemctl start systemd-resolved.service
sudo systemctl enable systemd-resolved.service

我发现here。但我每次重新启动系统时都必须这样做。 有没有人有另一种解决方案,或者至少告诉我原来的问题是什么?

【问题讨论】:

    标签: linux ubuntu internet-explorer networking


    【解决方案1】:

    您确实在应用解决方法。 这个问题之前有人问过并回答过,take a look here

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-11-27
      • 1970-01-01
      • 2014-05-16
      • 2021-03-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多